def bg_window_display_priority(lcdc: int) -> int: return check_bit(0,lcdc)
def sprite_size(lcdc: int) -> int: if check_bit(2,lcdc): return 16 return 8
def sprite_display_enable(lcdc: int) -> int: return check_bit(1,lcdc)
def bg_tile_map_display_select(lcdc: int) -> int: if check_bit(3,lcdc): return 0x1c00 return 0x1800
def bg_and_window_tile_data_select(lcdc: int) -> int: if check_bit(4,lcdc): return 0 return 0x800
def window_display_enable(lcdc: int) -> int: return check_bit(5,PPU.lcdc)
def window_tile_map_display_select(lcdc: int) -> int: if check_bit(6,lcdc): return 0x1c00 return 0x1800
def lcd_display_enable(lcdc: int) -> int: return check_bit(7,lcdc)