Bugfix to ISR trampoline (Thx qkumba!!)

This commit is contained in:
Bobbi Webber-Manners 2022-12-22 13:39:51 -05:00
parent 87553b95ef
commit 336654560b
1 changed files with 7 additions and 3 deletions

View File

@ -8,13 +8,17 @@
AUDIOCARD DB $00 ; $00 = Mockingboard, $01 = Ensoniq
* Trampoline in main memory used by aux memory IRQ handler
* to invoke Apple II / ProDOS IRQs in main memory
A2IRQ >>> IENTMAIN ; IENTMAIN does not do CLI
JSR A2IRQ2
>>> XF2AUX,IRQBRKRET
A2IRQ2 PHP ; Fake things to look like IRQ
LDA #>A2IRQRET
PHA
LDA #<A2IRQRET
PHA
PHP ; Fake things to look like IRQ
JMP (A2IRQV) ; Call Apple II ProDOS ISR
A2IRQRET >>> XF2AUX,IRQBRKRET
* BRK handler in main memory. Used on Apple IIgs only.