mirror of
https://github.com/a2-4am/passport.git
synced 2024-11-17 20:06:49 +00:00
actually save and restore boot slot
This commit is contained in:
parent
063f4e16be
commit
fce2a8b1ae
@ -356,10 +356,10 @@ ReadChoplifter
|
|||||||
lda $c054
|
lda $c054
|
||||||
lda $c052
|
lda $c052
|
||||||
lda $c050
|
lda $c050
|
||||||
|
txa
|
||||||
ldx #$43
|
ldx #$43
|
||||||
txs
|
txs
|
||||||
lda $2B
|
pha ; save boot slot
|
||||||
pha
|
|
||||||
lda #>(.resume-1)
|
lda #>(.resume-1)
|
||||||
pha
|
pha
|
||||||
lda #<(.resume-1)
|
lda #<(.resume-1)
|
||||||
@ -368,7 +368,7 @@ ReadChoplifter
|
|||||||
|
|
||||||
.resume
|
.resume
|
||||||
pla
|
pla
|
||||||
sta $2b
|
sta $2b ; restore boot slot
|
||||||
ldx #0
|
ldx #0
|
||||||
- lda .stager,x
|
- lda .stager,x
|
||||||
sta $500,x
|
sta $500,x
|
||||||
@ -384,6 +384,7 @@ ReadChoplifter
|
|||||||
sty $807
|
sty $807
|
||||||
ldy #$60 ; rts
|
ldy #$60 ; rts
|
||||||
sty $84c
|
sty $84c
|
||||||
|
ldx $2b ; SD requires X=boot slot x16
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user