gba: add bios interrupt flags#5445
Conversation
Adds a new GBA register for interrupt flags, the register is equivalent to the IF register, but is intended for BIOS functions. Acknowledging the interrupts with this register allows us to use BIOS halt functions such as VBlankIntrWait and IntrWait, which we can use to get rid of busy loops in the GBA code.
|
Related question: if I were to implement some of the BIOS functions should they go into |
Probably in |
Please run |
|
Woops! I've disabled auto-formatting in my IDE for tinygo as my usual formatting has a lot more rules and was affecting random code unrelated to the change. |
Adds a new GBA register for interrupt flags, the register is equivalent
to the IF register, but is intended for BIOS functions.
Acknowledging the interrupts with this register allows us to use BIOS
halt functions such as VBlankIntrWait and IntrWait, which we can use to
get rid of busy loops in the GBA code.
Example code: