mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-07 20:31:11 +00:00
add cheat for Cannonball Blitz and Commando
This commit is contained in:
parent
a110a52449
commit
0c33568587
File diff suppressed because one or more lines are too long
22
src/prelaunch/cannonball.bltz.a
Normal file
22
src/prelaunch/cannonball.bltz.a
Normal 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
36
src/prelaunch/commando.a
Normal 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
|
Loading…
x
Reference in New Issue
Block a user