Expand description
The GBA’s BIOS provides limited built-in utility functions.
BIOS functions are accessed with an swi
instruction to perform a software
interrupt. This means that there’s a significant overhead for a BIOS call
(tens of cycles) compared to a normal function call (3 cycles, or even none
of the function ends up inlined). Despite this higher cost, some bios
functions are useful enough to justify the overhead.
Structs
Used to provide info to a call of the
BitUnPack
function.Functions
0x10
: Copy data from src
to dest
while increasing the bit depth of the
elements copied.0x04
: Waits for a specific interrupt type(s) to happen.0x05
: Builtin shorthand for IntrWait(true, IrqBits::VBLANK)