(self, display, addr, byte_array)
Set bytes in CGA memory.
Set bytes in CGA memory.
Set bytes in CGA memory .
def set_memory(self, display, addr, byte_array):
        """Set bytes in CGA memory."""
        for page, x, y, ofs, length in self._walk_memory(addr, len(byte_array)):
            #bytes_to_interval
            pixarray = bytematrix.ByteMatrix.frompacked(
                byte_array[ofs:ofs+length], height=1, items_per_byte=self._ppb
            )
            display.pages[page].pixels[y, x:x+pixarray.width] = pixarray
def set_memory ( self , display , addr , byte_array ) : for page , x , y , ofs , length in self . _walk_memory ( addr , len ( byte_array ) ) : #bytes_to_interval pixarray = bytematrix . ByteMatrix . frompacked ( byte_array [ ofs : ofs + length ] , height = 1 , items_per_byte = self . _ppb ) display . pages [ page ] . pixels [ y , x : x + pixarray . width ] = pixarray