2019-10-13 22:19:48 +00:00
|
|
|
;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)
|
2019-12-13 05:51:54 +00:00
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|