mirror of
https://github.com/cc65/cc65.git
synced 2025-02-25 01:29:04 +00:00
Don't save original IRQ, NMI, and RESET vectors -- it's not needed.
This commit is contained in:
parent
1e9823306a
commit
250e26c56e
@ -1,7 +1,11 @@
|
|||||||
|
;
|
||||||
|
; Atari XL, shared data between 2nd load chunk and main chunk, header file
|
||||||
|
;
|
||||||
|
; Contains old values of modified system variables and ports.
|
||||||
|
;
|
||||||
|
; Christian Groessler, chris@groessler.org, 2013
|
||||||
|
;
|
||||||
|
|
||||||
.import IRQ_save
|
|
||||||
.import NMI_save
|
|
||||||
.import RESET_save
|
|
||||||
.import SAVMSC_save
|
.import SAVMSC_save
|
||||||
.import MEMTOP_save
|
.import MEMTOP_save
|
||||||
.import APPMHI_save
|
.import APPMHI_save
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
;
|
;
|
||||||
; Atari XL, shared data between 2nd load chunk and main chunk
|
; Atari XL, shared data between 2nd load chunk and main chunk, definition file
|
||||||
;
|
;
|
||||||
; Contains old values of modified system variables and ports.
|
; Contains old values of modified system variables and ports.
|
||||||
;
|
;
|
||||||
@ -8,9 +8,6 @@
|
|||||||
|
|
||||||
.if .defined(__ATARIXL__)
|
.if .defined(__ATARIXL__)
|
||||||
|
|
||||||
.export IRQ_save
|
|
||||||
.export NMI_save
|
|
||||||
.export RESET_save
|
|
||||||
.export SAVMSC_save
|
.export SAVMSC_save
|
||||||
.export MEMTOP_save
|
.export MEMTOP_save
|
||||||
.export APPMHI_save
|
.export APPMHI_save
|
||||||
@ -21,9 +18,6 @@
|
|||||||
|
|
||||||
.segment "SAVEAREA"
|
.segment "SAVEAREA"
|
||||||
|
|
||||||
IRQ_save: .res 2
|
|
||||||
NMI_save: .res 2
|
|
||||||
RESET_save: .res 2
|
|
||||||
SAVMSC_save: .res 2
|
SAVMSC_save: .res 2
|
||||||
MEMTOP_save: .res 2
|
MEMTOP_save: .res 2
|
||||||
APPMHI_save: .res 2
|
APPMHI_save: .res 2
|
||||||
|
@ -145,7 +145,7 @@ my_IRQ_han:
|
|||||||
pla
|
pla
|
||||||
plp
|
plp
|
||||||
.endif
|
.endif
|
||||||
int_wrap IRQ_save
|
int_wrap $FFFE
|
||||||
|
|
||||||
my_NMI_han:
|
my_NMI_han:
|
||||||
.ifdef DEBUG
|
.ifdef DEBUG
|
||||||
@ -174,11 +174,11 @@ my_NMI_han:
|
|||||||
pla
|
pla
|
||||||
tax
|
tax
|
||||||
pla
|
pla
|
||||||
int_wrap NMI_save
|
int_wrap $FFFA
|
||||||
|
|
||||||
my_RESET_han:
|
my_RESET_han:
|
||||||
enable_rom
|
enable_rom
|
||||||
jmp (RESET_save)
|
jmp ($FFFC)
|
||||||
|
|
||||||
|
|
||||||
; System request handlers
|
; System request handlers
|
||||||
|
@ -88,19 +88,6 @@ sramprep:
|
|||||||
lda SIOV+2
|
lda SIOV+2
|
||||||
sta ZP_SIOV_save+2
|
sta ZP_SIOV_save+2
|
||||||
|
|
||||||
lda $fffe
|
|
||||||
sta IRQ_save
|
|
||||||
lda $ffff
|
|
||||||
sta IRQ_save+1
|
|
||||||
lda $fffc
|
|
||||||
sta RESET_save
|
|
||||||
lda $fffd
|
|
||||||
sta RESET_save+1
|
|
||||||
lda $fffa
|
|
||||||
sta NMI_save
|
|
||||||
lda $fffb
|
|
||||||
sta NMI_save+1
|
|
||||||
|
|
||||||
; disable BASIC
|
; disable BASIC
|
||||||
|
|
||||||
lda PORTB
|
lda PORTB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user