Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Windowing

AddressstdgbaAccessTypetonclib
0x4000040reg_winh[2]Wvolatile unsigned char[2]REG_WIN0H
0x4000044reg_winv[2]Wvolatile unsigned char[2]REG_WIN0V
0x4000048reg_winin[2]RWwindow_control[2]REG_WININ
0x400004Areg_winoutRWwindow_controlREG_WINOUT
0x400004Breg_winobjRWwindow_controlREG_WINOUT (hi byte)

window_control

struct window_control {
    bool enable_bg0 : 1;
    bool enable_bg1 : 1;
    bool enable_bg2 : 1;
    bool enable_bg3 : 1;
    bool enable_obj : 1;
    bool enable_color_effect : 1;
};
gba::reg_winin[0] = { .enable_bg0 = true, .enable_obj = true };