2019-09-14 05:30:01 +00:00
|
|
|
;license:MIT
|
2020-05-14 03:11:06 +00:00
|
|
|
;(c) 2019-2020 by qkumba/Frank M.
|
2019-09-14 05:30:01 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/PRELAUNCH.INDEXED/DONKEY.KONG",plain
|
2019-09-15 02:57:52 +00:00
|
|
|
*=$106
|
|
|
|
|
|
|
|
!source "src/prelaunch/common.a"
|
2019-09-14 05:30:01 +00:00
|
|
|
|
2019-10-05 01:34:49 +00:00
|
|
|
+ENABLE_ACCEL
|
|
|
|
lda #$60
|
|
|
|
sta $3eab
|
|
|
|
jsr $3e36 ; decompress
|
2020-05-14 03:11:06 +00:00
|
|
|
+READ_RAM2_NO_WRITE
|
|
|
|
lda MachineStatus
|
|
|
|
pha
|
|
|
|
and #HAS_JOYSTICK
|
|
|
|
bne +
|
|
|
|
inc $7CB7 ; force keyboard
|
|
|
|
+
|
|
|
|
pla
|
2019-10-05 01:34:49 +00:00
|
|
|
and #CHEATS_ENABLED
|
|
|
|
beq +
|
|
|
|
lda #$2c
|
|
|
|
sta $729b
|
|
|
|
sta $6fea
|
|
|
|
+
|
2019-12-17 14:46:30 +00:00
|
|
|
lda #0
|
|
|
|
sta $4112
|
|
|
|
lda #1
|
|
|
|
sta $4117 ; reset vector patch
|
|
|
|
|
2019-10-05 01:34:49 +00:00
|
|
|
+DISABLE_ACCEL
|
|
|
|
jmp $4000
|
2019-12-13 05:51:54 +00:00
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|