2020-08-02 16:49:57 -07:00
|
|
|
;license:MIT
|
2022-05-16 17:19:06 -07:00
|
|
|
;(c) 2020, 2022 by qkumba
|
2020-08-02 16:49:57 -07:00
|
|
|
|
|
|
|
!cpu 6502
|
2021-10-15 21:34:39 -04:00
|
|
|
!to "build/PRELAUNCH.INDEXED/PHANTOMS.FIVE",plain
|
2020-08-02 16:49:57 -07:00
|
|
|
*=$106
|
|
|
|
|
2024-05-25 19:18:49 -04:00
|
|
|
!source "src/macros.a"
|
2020-08-02 16:49:57 -07:00
|
|
|
|
|
|
|
+NEW_RESET_VECTOR $340
|
2022-05-16 17:19:06 -07:00
|
|
|
+GET_MACHINE_STATUS
|
|
|
|
and #CHEATS_ENABLED
|
|
|
|
beq +
|
|
|
|
ldx #cheat_e-cheat_b
|
|
|
|
- lda cheat_b, x
|
|
|
|
sta cheat, x
|
|
|
|
dex
|
|
|
|
bpl -
|
|
|
|
lda #<cheat
|
|
|
|
sta $8C99
|
|
|
|
lda #>cheat
|
|
|
|
sta $8C9A
|
|
|
|
+ jmp $26B2
|
|
|
|
|
|
|
|
cheat_b !pseudopc $346 {
|
|
|
|
cheat
|
|
|
|
lda #$a5
|
|
|
|
sta $1D03 ; patch - don't decrease lives
|
|
|
|
jmp $15B0
|
|
|
|
}
|
|
|
|
cheat_e
|
2020-08-02 16:49:57 -07:00
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|