mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-02 06:30:47 +00:00
41 lines
728 B
Plaintext
41 lines
728 B
Plaintext
;license:MIT
|
|
;(c) 2019 by qkumba
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH/COMMANDO",plain
|
|
*=$106
|
|
|
|
jmp ++
|
|
|
|
cheat
|
|
jsr EnableAccelerator ; yes!
|
|
jsr $d33b
|
|
jsr DisableAccelerator
|
|
lda $d4bd
|
|
eor #$c5
|
|
bne +
|
|
sta $1053
|
|
sta $1063
|
|
+ rts
|
|
|
|
++
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
dec $11a6
|
|
jsr $1000 ; decompress
|
|
lda MachineStatus
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #<cheat
|
|
sta $d312
|
|
lda #>cheat
|
|
sta $d313
|
|
+
|
|
jsr DisableAccelerator
|
|
jmp $803
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|