mirror of
https://github.com/irmen/prog8.git
synced 2026-11-22 19:24:41 +00:00
Add a VBR-aware autovector IRQ handler mechanism to shared_amiga_custom.p8: set_handler/restore_handler install a generic trampoline at levels 1-7 (saves D0-D7/A0-A6, derives level from SR, jsr's the user handler, rte). restore_system() restores any installed handlers automatically. Handlers must be integer-only (no FPU state saved). VERTB: set_level3_handler, enable/disable/ack via INTF_* constants. CIA timers: set_ciaa_handler/set_ciab_handler, enable/disable_ciaa/ciab, read_ciaa_icr/read_ciab_icr (read acknowledges all pending sources). TOD alarm uses the same mechanism (ICR bit 2, tod_alarm_set/enable). IRQ sources use the NDK INTF_* constants instead of a custom enum.