save and restore boot slot across title page

This commit is contained in:
4am 2019-04-17 15:00:26 -04:00
parent 7517be5eaa
commit 063f4e16be

View File

@ -356,8 +356,10 @@ ReadChoplifter
lda $c054 lda $c054
lda $c052 lda $c052
lda $c050 lda $c050
ldx #$42 ldx #$43
txs txs
lda $2B
pha
lda #>(.resume-1) lda #>(.resume-1)
pha pha
lda #<(.resume-1) lda #<(.resume-1)
@ -365,6 +367,8 @@ ReadChoplifter
jmp $4000 jmp $4000
.resume .resume
pla
sta $2b
ldx #0 ldx #0
- lda .stager,x - lda .stager,x
sta $500,x sta $500,x
@ -380,7 +384,6 @@ ReadChoplifter
sty $807 sty $807
ldy #$60 ; rts ldy #$60 ; rts
sty $84c sty $84c
ldx $2b
jsr .callSD ; including original $8xx to $7xx jsr .callSD ; including original $8xx to $7xx
asl $807 ; 4xx, second table asl $807 ; 4xx, second table
jmp $500 jmp $500