4cade/src/prelaunch/genetic.drift.a

30 lines
678 B
Plaintext
Raw Permalink Normal View History

2019-09-30 17:24:49 +00:00
;license:MIT
;(c) 2019 by 4am
!cpu 6502
!to "build/PRELAUNCH.INDEXED/GENETIC.DRIFT",plain
2019-09-30 17:24:49 +00:00
*=$106
!source "src/macros.a"
2019-09-30 17:24:49 +00:00
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
sta patch+1
2019-09-30 17:24:49 +00:00
lda #<patch
sta $0859
lda #>patch
sta $085A
jmp $0800 ; decompress and show title and decompress again
patch
lda #0 ; SMC (will be non-zero if cheat mode is enabled)
beq +
2019-10-06 14:39:59 +00:00
; lives in $10
2019-09-30 17:24:49 +00:00
lda #$A5
sta $5846 ; patch - don't decrease lives
+
2019-09-30 17:24:49 +00:00
jmp $57D7
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}