1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-06-09 10:29:35 +00:00

Fix unhandled IRQ on IIGS

This commit is contained in:
David Schmenk 2018-05-07 10:23:31 -07:00
parent 6ff3cc2673
commit 81e40c4c7f

View File

@ -50,6 +50,10 @@ asm updateMouse
LDY #$40
JMP $C400 ; IIGS REQUIRES THIS HAPPEN IN IRQ
end
asm serviceCYA#0
CLC
RTS
end
//
// Check for VBL (timer) and Mouse events (atomic read and reset)
//
@ -175,6 +179,13 @@ for rom = $C100 to $C700 step $0100
params:2 = @serviceMouse
syscall($40, @params)
//
// Hook CYA IRQ handler into ProDOS IRQ chain
//
params.0 = 2
params.1 = 3
params:2 = @serviceCYA
syscall($40, @params)
//
// Set values
//
slot = rom >> 8