save some blocks

This commit is contained in:
Peter Ferrie 2021-02-22 21:02:27 -08:00
parent b0ff5ad722
commit b0869b4fbd
2 changed files with 13 additions and 8 deletions

View File

@ -13,23 +13,28 @@ callback
jsr $BD57 jsr $BD57
ldx $B7EC ldx $B7EC
ldy $B7ED ldy $B7ED
cpx #$19 cpx #$17
beq +
cpx #$18
bne ++
+ cpy #$0E
bne ++ bne ++
lda #0 lda #0
sta $BA48 cpy #8
beq +
cpy #5
bne ++
sta $BB48
rol
sta $BB4D ; hook in-game reset
bne ++
+ sta $BA48
rol rol
sta $BA4D ; hook in-game reset sta $BA4D ; hook in-game reset
++ ++
+GET_MACHINE_STATUS +GET_MACHINE_STATUS
and #CHEATS_ENABLED and #CHEATS_ENABLED
beq + beq +
cpx #$13 cpx #$14
bne + bne +
cpy #$03 cpy #$0B
bne + bne +
lda #$a5 lda #$a5
sta $BBD2 ; patch - don't decrease lives sta $BBD2 ; patch - don't decrease lives