believe this is the correct decrement logic
This commit is contained in:
parent
df8b4444b8
commit
5c428b982e
12
src/mmt.s
12
src/mmt.s
|
@ -1082,11 +1082,11 @@ TestAdvanceLocation lda TestDirection
|
||||||
|
|
||||||
:dn lda TestSize16Bit
|
:dn lda TestSize16Bit
|
||||||
beq :dn8
|
beq :dn8
|
||||||
:dn16 dex
|
:dn16 cpx #0 ;check if already at 0?
|
||||||
cpx #0
|
beq :hitBankBoundry ;
|
||||||
beq :hitBankBoundry
|
dex
|
||||||
|
beq :hitBankBoundry ;how about now?
|
||||||
dex ;
|
dex ;
|
||||||
cpx #0
|
|
||||||
beq :hitBankBoundryTest ;we still need to test in this case. side effect of odd start/ends
|
beq :hitBankBoundryTest ;we still need to test in this case. side effect of odd start/ends
|
||||||
bra :testStartAddr
|
bra :testStartAddr
|
||||||
:dn8 cpx #0
|
:dn8 cpx #0
|
||||||
|
@ -1276,7 +1276,6 @@ TestPatchBanks lda CurBank
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
CORRUPTOR lda $C000
|
CORRUPTOR lda $C000
|
||||||
bpl _nokey
|
bpl _nokey
|
||||||
and #11101111
|
and #11101111
|
||||||
|
@ -1286,8 +1285,7 @@ CORRUPTOR lda $C000
|
||||||
stal $020000,x
|
stal $020000,x
|
||||||
BANKPATCHXX = *-1
|
BANKPATCHXX = *-1
|
||||||
sta $C010 ; clear it or we can't test WaitOnError
|
sta $C010 ; clear it or we can't test WaitOnError
|
||||||
_nokey nop
|
_nokey rts
|
||||||
rts
|
|
||||||
mx %11
|
mx %11
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue