faster this, cheat at that

This commit is contained in:
Peter Ferrie 2019-10-13 11:24:59 -07:00
parent 8506c37660
commit cf6fe8e965
4 changed files with 42 additions and 5 deletions

View File

@ -0,0 +1,23 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/BATTLEZONE",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $201e
jsr $2000 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$b9
sta $7364 ; patch - don't decrease lives
sta $719c ; patch - don't increase lives
sta $71ba ; patch - don't increase lives
+
+DISABLE_ACCEL
jmp $810

View File

@ -7,13 +7,16 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $81e
jsr $800
lda #$60
sta $bd40
jsr $bc94
+DISABLE_ACCEL
jsr $5ff8
+ENABLE_ACCEL
lda #$6c
sta $bd40
lda #$60
@ -29,4 +32,5 @@
sta $1b4e
;;sta $a973
+
+DISABLE_ACCEL
jmp $6ba5

View File

@ -7,6 +7,9 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $4079
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
sta store-$BF70+cheat_b+1
@ -21,7 +24,10 @@
sta $4216
lda #$bf
sta $4217
jmp $4000
jsr $4000
jsr $40e0
+DISABLE_ACCEL
jmp $407c
cheat_b !pseudopc $bf70 {
pla

View File

@ -7,12 +7,16 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $3E58
sta $3E98
sta $3EF2
jsr $3DE9 ; phase 1
lda #$60
sta $B890
jsr $B82C ; phase 2
+DISABLE_ACCEL
jsr $4C00
+ENABLE_ACCEL
jsr $B839
+DISABLE_ACCEL
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +