4cade/src/prelaunch/mr.do.a

82 lines
1.2 KiB
Plaintext
Raw Normal View History

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