2019-09-30 17:24:49 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2019 by 4am
|
|
|
|
|
|
|
|
!cpu 6502
|
|
|
|
!to "build/PRELAUNCH/GENETIC.DRIFT",plain
|
|
|
|
*=$106
|
|
|
|
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
|
2019-10-05 01:34: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
|
2019-10-05 01:34:49 +00:00
|
|
|
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-10-05 01:34:49 +00:00
|
|
|
+
|
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 ", *
|
|
|
|
}
|