(self, addr)
return page, x, y
Get video page and coordinates for address.
Get video page and coordinates for address.
Get video page and coordinates for address .
def _get_coords(self, addr):
        """Get video page and coordinates for address."""
        addr = int(addr) - self._video_segment * 0x10
        # modes 7-9: 1 bit per pixel per colour plane
        page, addr = divmod(addr, self._page_size)
        row, row_offs = divmod(addr, self._bytes_per_row)
        x, y = row_offs*8, row
        return page, x, y
def _get_coords ( self , addr ) : addr = int ( addr ) - self . _video_segment * 0x10 # modes 7-9: 1 bit per pixel per colour plane page , addr = divmod ( addr , self . _page_size ) row , row_offs = divmod ( addr , self . _bytes_per_row ) x , y = row_offs * 8 , row return page , x , y