Set an SH2 interrupt vector entry.
- Parameters
-
| vector | Interrupt vector number (valid ranges: 0x40-0x4F for SCU, 0x60-0x8F for CPU) |
| handler | Function 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