4cade/src/prelaunch/defender.a

32 lines
697 B
Plaintext
Raw Normal View History

2019-09-18 22:41:44 +00:00
;license:MIT
2019-12-25 22:15:36 +00:00
;(c) 2019 by 4am/Frank M.
2019-09-18 22:41:44 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/DEFENDER",plain
2019-09-18 22:41:44 +00:00
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
2019-09-18 22:41:44 +00:00
lda #$60
sta $0813
jsr $0800 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
2019-10-06 14:39:59 +00:00
; lives in $9E
2019-09-18 22:41:44 +00:00
lda #$A5
sta $7579 ; patch - don't decrease lives
sta $6567 ; patch - don't increase lives
+
2019-12-17 14:46:30 +00:00
lda #$EA
sta $4045
sta $4046 ; reset vector patch
+DISABLE_ACCEL
2019-09-18 22:41:44 +00:00
jmp $4000
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}