Added main memory BRK handler for GS.

This commit is contained in:
Bobbi Webber-Manners 2021-08-15 18:18:52 -04:00
parent 76842a55c7
commit 94ed75352f
4 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -179,6 +179,10 @@ IRQBRKRET
PLA
NULLRTI RTI
* Invoked from GSBRK in main memory. On IIgs only.
GSBRKAUX >>> ENTAUX
JMP IRQBRKHDLR ; See if this works!!
PRERR LDY #$01
PRERRLP LDA (FAULT),Y
BEQ PRERR1

View File

@ -96,6 +96,11 @@ START JSR ROMMENU
EOR #$A5 ; Checksum
STA RSTV+2
LDA #<GSBRK ; Set BRK vector in main mem
STA $3F0
LDA #>GSBRK
STA $3F0+1
TSX ; Save SP at $0100 in aux
STA $C005 ; Write to aux
STX $0100

View File

@ -13,6 +13,9 @@ A2IRQ >>> ENTMAIN
A2IRQ2 PHP ; Fake things to look like IRQ
JMP (A2IRQV) ; Call Apple II ProDOS ISR
* BRK handler in main memory. Used on Apple IIgs only.
GSBRK >>> XF2AUX,GSBRKAUX
* Set prefix if not already set
SETPRFX LDA #GPFXCMD
STA :OPC7 ; Initialize cmd byte to $C7