4cade/src/prelaunch/xevious.a

54 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-10-11 14:28:30 +00:00
;license:MIT
;(c) 2019 by 4am/qkumba/Frank M.
2019-10-11 14:28:30 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/XEVIOUS",plain
2019-10-11 14:28:30 +00:00
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
2019-12-31 21:29:20 +00:00
+READ_RAM2_WRITE_RAM2
lda #<reset
sta $FFFC
sta $3F2 ; $3F3/3F4 already set to page 1
lda #>reset
sta $FFFD ; reset vector patch
2019-10-11 14:28:30 +00:00
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
sta patch2+1
lda #<patch1
sta $35E4
lda #>patch1
sta $35E5
jmp $34AA ; decompress 1
2019-12-30 04:34:18 +00:00
reset
+READ_ROM_NO_WRITE
jmp $FAA6
2019-10-11 14:28:30 +00:00
patch1
+DISABLE_ACCEL
lda #<patch2
sta $ACE8
lda #>patch2
sta $ACE9
2019-12-31 21:29:20 +00:00
jmp $AC48 ; decompress 2/first title
2019-10-11 14:28:30 +00:00
patch2
lda #0 ; SMC
beq +
; lives in $602B
lda #$AD
sta $6414 ; patch - don't decrease lives
sta $6A8C ; patch - don't increase lives
sta $750D ; patch - don't increase lives
sta $894F ; patch - don't increase lives
+
2019-12-31 21:29:20 +00:00
jmp $0600 ; play demo/start game
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}