code: def set_register(self, register, value):
          
          context = self.get_context()
          context[register] = value
          self.set_context(context)
docs: Sets the value of a specific register.
  
          @type  register: str
          @param register: Register name.
  
          @rtype:  int
          @return: Register value.