mirror of
https://github.com/a2-4am/4cade.git
synced 2024-06-17 23:29:31 +00:00
39 lines
752 B
Plaintext
Executable File
39 lines
752 B
Plaintext
Executable File
;license:MIT
|
|
;(c) 2019-2020 by qkumba/Frank M.
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH.INDEXED/DONKEY.KONG",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
lda #$60
|
|
sta $3eab
|
|
jsr $3e36 ; decompress
|
|
+READ_RAM2_NO_WRITE
|
|
lda MachineStatus
|
|
pha
|
|
and #HAS_JOYSTICK
|
|
bne +
|
|
inc $7CB7 ; force keyboard
|
|
+
|
|
pla
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #$2c
|
|
sta $729b
|
|
sta $6fea
|
|
+
|
|
lda #0
|
|
sta $4112
|
|
lda #1
|
|
sta $4117 ; reset vector patch
|
|
|
|
+DISABLE_ACCEL
|
|
jmp $4000
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|