add cheat for Cannonball Blitz and Commando

This commit is contained in:
Peter Ferrie 2019-10-14 19:16:20 -07:00
parent a110a52449
commit 0c33568587
3 changed files with 59 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,22 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/CANNONBALL.BLTZ",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $1e61
jsr $1e30 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $7dbf ; patch - don't increase lives
sta $9c01 ; patch - don't decrease lives
+
+DISABLE_ACCEL
jmp $a000

36
src/prelaunch/commando.a Normal file
View File

@ -0,0 +1,36 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/COMMANDO",plain
*=$106
jmp ++
cheat
jsr $d33f
lda $d521
eor #$c5
bne +
sta $1053
sta $1063
+ rts
++
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $111c
jsr $1000 ; decompress
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #<cheat
sta $d318
lda #>cheat
sta $d319
+
jsr DisableAccelerator
lda #$c2
jmp $d300