Module gba::asm_runtime

source ·
Expand description

This module holds the assembly runtime that supports your Rust program.

Most importantly, you can set the RUST_IRQ_HANDLER variable to assign which function should be run during a hardware interrupt.

  • When a hardware interrupt occurs, control first goes to the BIOS, which will then call the assembly runtime’s handler.
  • The assembly runtime handler will properly acknowledge the interrupt within the system on its own without you having to do anything.
  • If a function is set in the RUST_IRQ_HANDLER variable then that function will be called and passed the bits for which interrupt(s) occurred.

Statics§

  • The function pointer that the assembly runtime calls when an interrupt occurs.