2019-09-13 22:30:01 -07:00
|
|
|
;license:MIT
|
2019-12-25 14:15:36 -08:00
|
|
|
;(c) 2019 by qkumba/Frank M.
|
2019-09-13 22:30:01 -07:00
|
|
|
|
|
|
|
!cpu 6502
|
2019-09-14 22:57:52 -04:00
|
|
|
!to "build/PRELAUNCH/MR.DO",plain
|
|
|
|
*=$106
|
2019-09-13 22:30:01 -07:00
|
|
|
|
2019-09-14 22:57:52 -04:00
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
|
2019-12-19 18:19:28 -08:00
|
|
|
+USES_TEXT_PAGE_2
|
|
|
|
inc $3F4 ; reboot on reset
|
|
|
|
clc
|
|
|
|
bcc cheat3
|
2019-09-13 22:30:01 -07:00
|
|
|
|
|
|
|
cheat2
|
2019-12-19 18:19:28 -08:00
|
|
|
jsr $20d
|
2019-09-13 22:30:01 -07:00
|
|
|
|
|
|
|
cheat64
|
2019-12-19 18:19:28 -08:00
|
|
|
lda #$a5
|
|
|
|
sta $1da7
|
|
|
|
sta $9bf
|
|
|
|
rts
|
2019-09-13 22:30:01 -07:00
|
|
|
|
|
|
|
cheat1
|
2019-12-19 18:19:28 -08:00
|
|
|
ldy #<cheat2
|
|
|
|
sty $209
|
|
|
|
ldy #>cheat2
|
|
|
|
sty $20a
|
|
|
|
bne $19e
|
2019-09-13 22:30:01 -07:00
|
|
|
|
|
|
|
cheat3
|
2020-01-26 10:04:08 -08:00
|
|
|
+GET_MACHINE_STATUS
|
|
|
|
and #CHEATS_ENABLED
|
|
|
|
beq +
|
2019-12-19 18:19:28 -08:00
|
|
|
lda #$60
|
|
|
|
sta $83f
|
2020-01-26 10:04:08 -08:00
|
|
|
+ jsr $800
|
2019-12-19 18:19:28 -08:00
|
|
|
lda $847
|
|
|
|
beq cheat48
|
|
|
|
lda #$60
|
|
|
|
sta $d15
|
|
|
|
jsr $ce8
|
|
|
|
lda #<cheat4
|
|
|
|
sta $d137
|
|
|
|
lda #>cheat4
|
|
|
|
sta $d138
|
|
|
|
jmp $d100
|
2019-09-13 22:30:01 -07:00
|
|
|
|
|
|
|
cheat4
|
2019-12-19 18:19:28 -08:00
|
|
|
jsr $d13b
|
|
|
|
jmp cheat64
|
2019-09-13 22:30:01 -07:00
|
|
|
|
|
|
|
cheat48
|
2019-12-19 18:19:28 -08:00
|
|
|
lda #<cheat1
|
|
|
|
sta $1040
|
|
|
|
lda #>cheat1
|
|
|
|
sta $1041
|
|
|
|
jmp $1000
|
2019-12-12 21:51:54 -08:00
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|