4cade/src/prelaunch/bad.dudes.a
2019-12-21 16:05:56 -08:00

41 lines
710 B
Plaintext

;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/BAD.DUDES",plain
*=$106
jmp ++
cheat
jsr EnableAccelerator ; yes!
jsr $d35d
jsr DisableAccelerator
lda $d4b4
cmp #$c7
bne +
lda #$ad
sta $e6fb
+ rts
++
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
dec $1195
jsr $1000
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #<cheat
sta $d334
lda #>cheat
sta $d335
+
jsr DisableAccelerator
jmp $800
!if * > $1C0 {
!error "code is too large, ends at ", *
}