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

Interrupts

AddressstdgbaAccessTypetonclib
0x4000200reg_ieRWirqREG_IE
0x4000202reg_ifRWirqREG_IF
0x4000202reg_if_statRconst irqREG_IF (read)
0x4000202reg_if_ackWvolatile irqREG_IF (write)
0x4000208reg_imeRWboolREG_IME

irq

struct irq {
    bool vblank : 1;
    bool hblank : 1;
    bool vcounter : 1;
    bool timer0 : 1;
    bool timer1 : 1;
    bool timer2 : 1;
    bool timer3 : 1;
    bool serial : 1;
    bool dma0 : 1;
    bool dma1 : 1;
    bool dma2 : 1;
    bool dma3 : 1;
    bool keypad : 1;
    bool gamepak : 1;
};
gba::reg_ie = { .vblank = true };
gba::reg_ime = true;