mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-26 22:31:11 +00:00
40 lines
818 B
Plaintext
40 lines
818 B
Plaintext
|
;license:MIT
|
||
|
;(c) 2019 by qkumba
|
||
|
|
||
|
!cpu 6502
|
||
|
!to "build/PRELAUNCH/BERZAP",plain
|
||
|
*=$106
|
||
|
|
||
|
!source "src/prelaunch/common.a"
|
||
|
|
||
|
+ENABLE_ACCEL
|
||
|
lda #<cheat1
|
||
|
sta $871
|
||
|
lda #>cheat1
|
||
|
sta $872
|
||
|
jmp $800 ; decompress
|
||
|
|
||
|
cheat1
|
||
|
lda #$4c
|
||
|
sta $b20b
|
||
|
lda #<cheat2
|
||
|
sta $b20c
|
||
|
lda #>cheat2
|
||
|
sta $b20d
|
||
|
jmp $b000
|
||
|
|
||
|
cheat2
|
||
|
+DISABLE_ACCEL
|
||
|
lda $b2cf
|
||
|
cmp #$2b
|
||
|
bne +
|
||
|
+GET_MACHINE_STATUS
|
||
|
and #CHEATS_ENABLED
|
||
|
beq +
|
||
|
lda #$ad
|
||
|
sta $3d94 ; patch - don't decrease lives
|
||
|
sta $6573 ; patch - don't increase lives
|
||
|
sta $76ba ; patch - don't increase lives
|
||
|
+
|
||
|
jmp ($b2ce)
|