(self, addr, val)
Set data in data memory.
Set data in data memory.
Set data in data memory .
def set_memory(self, addr, val):
        """Set data in data memory."""
        addr -= self.data_segment*0x10
        if addr >= self.var_start():
            # POKING in variables
            self._not_implemented_pass(addr, val)
        elif addr >= self.code_start:
            # code memory
            self.program.set_memory(addr, val)
        elif addr >= self._field_mem_start:
            # file & FIELD memory
            self._not_implemented_pass(addr, val)
        elif addr >= 0:
            self._set_basic_memory(addr, val)
def set_memory ( self , addr , val ) : addr -= self . data_segment * 0x10 if addr >= self . var_start ( ) : # POKING in variables self . _not_implemented_pass ( addr , val ) elif addr >= self . code_start : # code memory self . program . set_memory ( addr , val ) elif addr >= self . _field_mem_start : # file & FIELD memory self . _not_implemented_pass ( addr , val ) elif addr >= 0 : self . _set_basic_memory ( addr , val )