Module gba::bios

source ·
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§

Functions§