4cade/src/prelaunch/canyon.climber.a

39 lines
885 B
Plaintext
Raw Permalink Normal View History

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
!to "build/PRELAUNCH.INDEXED/CANYON.CLIMBER",plain
2019-09-19 03:48:35 +00:00
*=$106
!source "src/macros.a"
2019-09-19 03:48:35 +00:00
+ENABLE_ACCEL
lda #$60
sta $8022
jsr $67de ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$a5
sta $35c2
+
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
+DISABLE_ACCEL
jmp $3000
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}