mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-11-18 23:07:53 +00:00
Make BRK work correctly when in aux mem decompression.
This commit is contained in:
parent
63a1935622
commit
7e6308e994
@ -31,8 +31,6 @@ DEBUG = 0
|
|||||||
; This guarantees that the decompression won't overwrite any source material
|
; This guarantees that the decompression won't overwrite any source material
|
||||||
; before it gets used.
|
; before it gets used.
|
||||||
decomp !zone {
|
decomp !zone {
|
||||||
lda #$B0 ; bcs
|
|
||||||
sta .ifend
|
|
||||||
jsr .chkdst
|
jsr .chkdst
|
||||||
ldy #0 ; In lit loop Y must be zero
|
ldy #0 ; In lit loop Y must be zero
|
||||||
.fill1A jsr .getbt2
|
.fill1A jsr .getbt2
|
||||||
@ -41,10 +39,11 @@ decomp !zone {
|
|||||||
.incdst inc pDst+1
|
.incdst inc pDst+1
|
||||||
.chkdst ldx pDst+1
|
.chkdst ldx pDst+1
|
||||||
cpx pEnd+1
|
cpx pEnd+1
|
||||||
bne +
|
ldx #$B0 ; bcs
|
||||||
|
bcc +
|
||||||
|
clc
|
||||||
ldx #$90 ; bcc
|
ldx #$90 ; bcc
|
||||||
stx .ifend
|
+ stx .ifend
|
||||||
+ clc
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.endchk lda pDst
|
.endchk lda pDst
|
||||||
@ -52,7 +51,8 @@ decomp !zone {
|
|||||||
bcc .seq
|
bcc .seq
|
||||||
bne .bad
|
bne .bad
|
||||||
rts
|
rts
|
||||||
.bad brk
|
.bad sta $C002 ; clrAuxRd
|
||||||
|
brk
|
||||||
|
|
||||||
.src1A inc pSrc+1
|
.src1A inc pSrc+1
|
||||||
bne .src1B ; always taken
|
bne .src1B ; always taken
|
||||||
|
Loading…
Reference in New Issue
Block a user