4cade/src/prelaunch/lode.runner.a
2019-12-12 21:51:54 -08:00

29 lines
621 B
Plaintext

;license:MIT
;(c) 2019 by 4am
!cpu 6502
!to "build/PRELAUNCH/LODE.RUNNER",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $1F4E
jsr $1F00 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
; lives in $98, capped at 255
lda #$FF
sta $606F ; start with 255 lives
lda #$A5
sta $613F ; patch - don't decrease lives
+
+DISABLE_ACCEL
jmp $9050
!if * > $1C0 {
!error "code is too large, ends at ", *
}