1
0
mirror of https://github.com/cc65/cc65.git synced 2025-04-08 19:38:55 +00:00

"save area" is used to save modified system variables and ports. It's

shared between the second and main chunk.
This commit is contained in:
Christian Groessler 2013-05-30 02:31:25 +02:00
parent 06f441e90f
commit 2f6e7874c6
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,6 @@
.import SAVMSC_save
.import MEMTOP_save
.import APPMHI_save
.import RAMTOP_save
.import PORTB_save

25
libsrc/atari/save_area.s Normal file
View File

@ -0,0 +1,25 @@
;
; Atari XL, shared data between 2nd load chunk and main chunk
;
; Contains old values of modified system variables and ports.
;
; Christian Groessler, chris@groessler.org, 2013
;
.if .defined(__ATARIXL__)
.export SAVMSC_save
.export MEMTOP_save
.export APPMHI_save
.export RAMTOP_save
.export PORTB_save
.segment "SAVEAREA"
SAVMSC_save: .res 2
MEMTOP_save: .res 2
APPMHI_save: .res 2
RAMTOP_save: .res 1
PORTB_save: .res 1
.endif