(self, addr, buf)
Set a contiguous block of bytes in memory.
Set a contiguous block of bytes in memory.
Set a contiguous block of bytes in memory .
def _set_memory_block(self, addr, buf):
        """Set a contiguous block of bytes in memory."""
        if addr >= self.video_segment*0x10:
            video_len = 0x20000 - (addr - self.video_segment*0x10)
            # graphics and text memory - specialised call
            self._set_video_memory_block(addr, buf[:video_len])
            addr += video_len
            buf = buf[video_len:]
        for a in range(len(buf)):
            self._set_memory(addr + a, buf[a])
def _set_memory_block ( self , addr , buf ) : if addr >= self . video_segment * 0x10 : video_len = 0x20000 - ( addr - self . video_segment * 0x10 ) # graphics and text memory - specialised call self . _set_video_memory_block ( addr , buf [ : video_len ] ) addr += video_len buf = buf [ video_len : ] for a in range ( len ( buf ) ) : self . _set_memory ( addr + a , buf [ a ] )