4cade/src/prelaunch/phantoms.five.a

36 lines
666 B
Plaintext
Raw Permalink Normal View History

2020-08-02 23:49:57 +00:00
;license:MIT
2022-05-17 00:19:06 +00:00
;(c) 2020, 2022 by qkumba
2020-08-02 23:49:57 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/PHANTOMS.FIVE",plain
2020-08-02 23:49:57 +00:00
*=$106
!source "src/macros.a"
2020-08-02 23:49:57 +00:00
+NEW_RESET_VECTOR $340
2022-05-17 00:19:06 +00: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 23:49:57 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}