Create xevious.a

This commit is contained in:
Frank M 2019-12-18 06:53:48 -08:00
parent 5c17998289
commit b2325a6abc

40
src/prelaunch/xevious.a Normal file
View File

@ -0,0 +1,40 @@
;license:MIT
;(c) 2019 by 4am
!cpu 6502
!to "build/PRELAUNCH/XEVIOUS",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
sta patch2+1
lda #<patch1
sta $35E4
lda #>patch1
sta $35E5
jmp $34AA ; decompress 1
patch1
+DISABLE_ACCEL
lda #<patch2
sta $ACE8
lda #>patch2
sta $ACE9
jmp $AC48 ; decompress 2
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
+
jmp $0600
!if * > $1C0 {
!error "code is too large, ends at ", *
}