1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-04-21 07:17:03 +00:00

Fix unhandled IRQ on IIGS

This commit is contained in:
David Schmenk
2018-05-07 10:22:28 -07:00
parent 92300ab18a
commit e6c81e8c8d
2 changed files with 13 additions and 2 deletions
+11
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