mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-17 07:31:19 +00:00
back up less of the stack
This commit is contained in:
parent
22e1dcc014
commit
27ec2ebd4e
@ -53,12 +53,12 @@ RestoreStackNextTime
|
|||||||
; caller.
|
; caller.
|
||||||
lda #$18 ; reset to 'clc' opcode so we don't try to
|
lda #$18 ; reset to 'clc' opcode so we don't try to
|
||||||
sta RestoreStackNextTime ; restore the same stack twice
|
sta RestoreStackNextTime ; restore the same stack twice
|
||||||
ldx #1
|
ldx #$F1
|
||||||
- lda $DF00,x ; restore stack
|
- lda $DF00,x ; restore stack
|
||||||
sta $100,x
|
sta $100,x
|
||||||
inx
|
inx
|
||||||
bne -
|
bne -
|
||||||
ldx $DF00 ; restore stack pointer
|
ldx $DFF0 ; restore stack pointer
|
||||||
txs
|
txs
|
||||||
+READ_RAM1_WRITE_RAM1
|
+READ_RAM1_WRITE_RAM1
|
||||||
rts ; and return to caller
|
rts ; and return to caller
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
; D400..D5FF - ProRWTS code
|
; D400..D5FF - ProRWTS code
|
||||||
; D600..D9FF - HGR font data
|
; D600..D9FF - HGR font data
|
||||||
; DA00..DD5C - ProRWTS glue code
|
; DA00..DD5C - ProRWTS glue code
|
||||||
; DD5D..DEFF - unused
|
; DD5D..DFEF - unused
|
||||||
; DF00..DFFF - backup of stack (during gameplay and self-running demos)
|
; DFF0..DFFF - backup of stack (during gameplay and self-running demos)
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
; soft switches
|
; soft switches
|
||||||
|
@ -173,13 +173,13 @@ gCurrentlyVisibleSlideshowIndex
|
|||||||
Launch
|
Launch
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr SaveOrRestoreScreenHoles ; save screen hole contents
|
jsr SaveOrRestoreScreenHoles ; save screen hole contents
|
||||||
ldx #1
|
ldx #$F1
|
||||||
- lda $100,x
|
- lda $100,x
|
||||||
sta $DF00,x ; back up stack
|
sta $DF00,x ; back up stack
|
||||||
inx
|
inx
|
||||||
bne -
|
bne -
|
||||||
tsx ; back up stack pointer
|
tsx ; back up stack pointer
|
||||||
stx $DF00
|
stx $DFF0
|
||||||
lda #$38 ; 'sec' opcode to tell |Reenter| to
|
lda #$38 ; 'sec' opcode to tell |Reenter| to
|
||||||
sta RestoreStackNextTime ; restore the stack and stack pointer
|
sta RestoreStackNextTime ; restore the stack and stack pointer
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user