(self, addr, val)
Set the value at an emulated memory location.
Set the value at an emulated memory location.
Set the value at an emulated memory location .
def _set_memory(self, addr, val):
        """Set the value at an emulated memory location."""
        if addr >= self.rom_segment*0x10:
            # ROM includes font memory
            pass
        elif addr >= self.ram_font_segment*0x10:
            # RAM font memory
            self._set_font_memory(addr, val)
        elif addr >= self.video_segment*0x10:
            # graphics and text memory
            self._set_video_memory(addr, val)
        elif addr >= self._memory.data_segment*0x10:
            self._memory.set_memory(addr, val)
        elif addr >= 0:
            self._set_low_memory(addr, val)
def _set_memory ( self , addr , val ) : if addr >= self . rom_segment * 0x10 : # ROM includes font memory pass elif addr >= self . ram_font_segment * 0x10 : # RAM font memory self . _set_font_memory ( addr , val ) elif addr >= self . video_segment * 0x10 : # graphics and text memory self . _set_video_memory ( addr , val ) elif addr >= self . _memory . data_segment * 0x10 : self . _memory . set_memory ( addr , val ) elif addr >= 0 : self . _set_low_memory ( addr , val )