2019-10-01 02:24:45 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2019 by 4am
|
|
|
|
|
|
|
|
!cpu 6502
|
|
|
|
!to "build/PRELAUNCH/UP.N.DOWN",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-10-05 22:58:45 +00:00
|
|
|
ldx #$0B ; copy patch code to zero page (stack will be destroyed by the time we need to patch)
|
2019-10-01 02:24:45 +00:00
|
|
|
- lda patch,x
|
2019-10-05 22:58:45 +00:00
|
|
|
sta $F4,x
|
2019-10-01 02:24:45 +00:00
|
|
|
dex
|
|
|
|
bpl -
|
2019-10-05 22:58:45 +00:00
|
|
|
lda #$F4 ; call patch instead of $200
|
2019-10-01 02:24:45 +00:00
|
|
|
sta $4061
|
|
|
|
lda #$00
|
|
|
|
sta $4062
|
|
|
|
jmp $2DC2
|
|
|
|
patch
|
2019-10-05 01:34:49 +00:00
|
|
|
lda #0 ; SMC
|
|
|
|
beq +
|
2019-10-01 02:24:45 +00:00
|
|
|
lda #$B5
|
|
|
|
sta $0912 ; patch - don't decrease lives
|
2019-10-05 01:34:49 +00:00
|
|
|
+
|
2019-10-01 02:24:45 +00:00
|
|
|
jmp $0200 ; continue with load
|