mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2024-09-28 07:55:27 +00:00
Added main memory BRK handler for GS.
This commit is contained in:
parent
76842a55c7
commit
94ed75352f
BIN
applecorn.po
BIN
applecorn.po
Binary file not shown.
@ -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
|
||||
|
5
loader.s
5
loader.s
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user