SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches

◆ SetInterruptVector()

void SRL::System::SetInterruptVector ( uint32_t vector,
void * handler )
inlinestatic

Set an SH2 interrupt vector entry.

Parameters
vectorInterrupt vector number (valid ranges: 0x40-0x4F for SCU, 0x60-0x8F for CPU)
handlerFunction pointer to register (or nullptr to restore default)

Calls the BIOS entry at 0x6000310. Unlike SetInterruptHandler(), this operates on raw vector numbers and can target CPU exception vectors (0x60-0x8F) as well as TRAP vectors (0x80-0x8F). CPU/TRAP handlers use normal rts and do not need __attribute__((interrupt_handler)).

Note
From the master SH2, vectors 0x94 (slave startup) and 0x100-0x17F (slave vector table mirror) are also accessible.
See also
Interrupt::SetHandler() for the type-safe wrapper