4cade/src/prelaunch/berzap.a
2019-12-12 21:51:54 -08:00

44 lines
878 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)
!if * > $1C0 {
!error "code is too large, ends at ", *
}