4cade/src/prelaunch/bad.dudes.a

45 lines
834 B
Plaintext
Raw Normal View History

2019-10-12 22:18:11 +00:00
;license:MIT
2024-05-10 23:47:30 +00:00
;(c) 2019, 2024 by qkumba/Frank M.
2019-10-12 22:18:11 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/BAD.DUDES",plain
2019-10-12 22:18:11 +00:00
*=$106
jmp ++
cheat
jsr EnableAccelerator ; yes!
2019-12-22 00:05:56 +00:00
jsr $d35d
2019-10-12 22:18:11 +00:00
jsr DisableAccelerator
2019-12-22 00:05:56 +00:00
lda $d4b4
2019-10-12 22:18:11 +00:00
cmp #$c7
bne +
lda #$ad
sta $e6fb
+ rts
++
!source "src/prelaunch/common.a"
2024-05-10 23:47:30 +00:00
lda #$60
sta $336
jsr $300
2019-10-12 22:18:11 +00:00
+ENABLE_ACCEL
inc $3F4 ; force reboot
2019-12-22 00:05:56 +00:00
dec $1195
2019-10-12 22:18:11 +00:00
jsr $1000
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #<cheat
2019-12-22 00:05:56 +00:00
sta $d334
2019-10-12 22:18:11 +00:00
lda #>cheat
2019-12-22 00:05:56 +00:00
sta $d335
2019-10-12 22:18:11 +00:00
+
jsr DisableAccelerator
2019-12-22 00:05:56 +00:00
jmp $800
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}