4cade/src/prelaunch/crossfire.a

32 lines
693 B
Plaintext
Executable File

;license:MIT
;(c) 2019 by 4am/Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/CROSSFIRE",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $6240
jsr $6230 ; phase 1
lda #$60
sta $85AE ; phase 2
jsr $85A4
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
; lives in $4C1F
lda #$00
sta $4786 ; patch - don't decrease lives
+
lda #1
sta $4D8F ; reset vector patch
+DISABLE_ACCEL
jmp $4000
!if * > $1C0 {
!error "code is too large, ends at ", *
}