4cade/src/prelaunch/zenith.a

29 lines
554 B
Plaintext
Raw Normal View History

2022-05-19 17:42:44 +00:00
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/ZENITH",plain
*=$106
!source "src/macros.a"
2022-05-19 17:42:44 +00:00
+ENABLE_ACCEL
lda #$60
sta $403E
jsr $4000 ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$60
sta $A235 ; patch - don't decrease fuel
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp ($20)
!if * > $1C0 {
!error "code is too large, ends at ", *
}