mirror of
https://github.com/a2-4am/passport.git
synced 2025-01-03 08:33:18 +00:00
Merge pull request #74 from peterferrie/master
defer patching to actually support Choplifer
This commit is contained in:
commit
ffde50cb9e
@ -356,10 +356,8 @@ ReadChoplifter
|
|||||||
lda $c054
|
lda $c054
|
||||||
lda $c052
|
lda $c052
|
||||||
lda $c050
|
lda $c050
|
||||||
txa
|
ldx #$42
|
||||||
ldx #$43
|
|
||||||
txs
|
txs
|
||||||
pha ; save boot slot
|
|
||||||
lda #>(.resume-1)
|
lda #>(.resume-1)
|
||||||
pha
|
pha
|
||||||
lda #<(.resume-1)
|
lda #<(.resume-1)
|
||||||
@ -367,8 +365,6 @@ ReadChoplifter
|
|||||||
jmp $4000
|
jmp $4000
|
||||||
|
|
||||||
.resume
|
.resume
|
||||||
pla
|
|
||||||
sta $2b ; restore boot slot
|
|
||||||
ldx #0
|
ldx #0
|
||||||
- lda .stager,x
|
- lda .stager,x
|
||||||
sta $500,x
|
sta $500,x
|
||||||
@ -401,15 +397,25 @@ ReadChoplifter
|
|||||||
|
|
||||||
sta $207
|
sta $207
|
||||||
|
|
||||||
|
lda #6
|
||||||
|
sta $27
|
||||||
|
jsr $823 ; read patch table to $600
|
||||||
|
jsr .dostep2 ; reach track $22
|
||||||
|
sta $3d
|
||||||
lda #4
|
lda #4
|
||||||
sta $27
|
sta $27
|
||||||
jsr $823 ; read patch table to $400
|
jsr $823 ; read high scores to $400
|
||||||
|
lda $C088,x
|
||||||
ldy #0 ; avoid CFFA bug (Y is not zero on return)
|
ldy #0 ; avoid CFFA bug (Y is not zero on return)
|
||||||
- lda $400,y
|
- lda $700,y
|
||||||
|
sta $800,y
|
||||||
|
iny
|
||||||
|
bne -
|
||||||
|
- lda $600,y
|
||||||
sta .patcher+1
|
sta .patcher+1
|
||||||
lda $401,y
|
lda $601,y
|
||||||
sta .patcher+2
|
sta .patcher+2
|
||||||
lda $402,y
|
lda $602,y
|
||||||
iny
|
iny
|
||||||
iny
|
iny
|
||||||
iny
|
iny
|
||||||
@ -418,16 +424,6 @@ ReadChoplifter
|
|||||||
sta $d1d1
|
sta $d1d1
|
||||||
cmp #$ea
|
cmp #$ea
|
||||||
bne -
|
bne -
|
||||||
jsr .dostep2 ; reach track $22
|
|
||||||
sta $3d
|
|
||||||
dec $27
|
|
||||||
jsr $823 ; read high scores to $400
|
|
||||||
ldy #0 ; avoid CFFA bug (Y is not zero on return)
|
|
||||||
- lda $700,y
|
|
||||||
sta $800,y
|
|
||||||
iny
|
|
||||||
bne -
|
|
||||||
lda $C088,x
|
|
||||||
jmp ($20)
|
jmp ($20)
|
||||||
|
|
||||||
.callSD
|
.callSD
|
||||||
|
Loading…
Reference in New Issue
Block a user