2019-09-19 03:48:35 +00:00
|
|
|
;license:MIT
|
2019-12-25 22:15:36 +00:00
|
|
|
;(c) 2019 by qkumba/Frank M.
|
2019-09-19 03:48:35 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/PRELAUNCH.INDEXED/CANYON.CLIMBER",plain
|
2019-09-19 03:48:35 +00:00
|
|
|
*=$106
|
|
|
|
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
|
2019-10-05 01:34:49 +00:00
|
|
|
+ENABLE_ACCEL
|
|
|
|
lda #$60
|
|
|
|
sta $8022
|
|
|
|
jsr $67de ; decompress
|
|
|
|
+GET_MACHINE_STATUS
|
|
|
|
and #CHEATS_ENABLED
|
|
|
|
beq +
|
|
|
|
lda #$a5
|
|
|
|
sta $35c2
|
|
|
|
+
|
2019-12-23 15:31:16 +00:00
|
|
|
lda #$82 ; READ_ROM_NO_WRITE
|
|
|
|
sta $101
|
|
|
|
lda #$A6
|
|
|
|
sta $104
|
|
|
|
lda #$FA
|
|
|
|
sta $105 ; update TR hook to reboot
|
|
|
|
+READ_RAM2_WRITE_RAM2
|
|
|
|
lda #0
|
|
|
|
sta $3256 ; sets reset at $455
|
|
|
|
sta $FFFC
|
|
|
|
lda #1
|
|
|
|
sta $3261 ; which is copied from $3255
|
|
|
|
sta $FFFD ; LC reset vector fix
|
2019-10-05 01:34:49 +00:00
|
|
|
+DISABLE_ACCEL
|
|
|
|
jmp $3000
|
2019-12-13 05:51:54 +00:00
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|