4cade/src/prelaunch/brainteaserblvd.a
2019-12-25 17:15:36 -05:00

40 lines
864 B
Plaintext
Executable File

;license:MIT
;(c) 2019 by 4am/Frank M.
!cpu 6502
!to "build/PRELAUNCH/BRAINTEASERBLVD",plain
*=$106
!source "src/prelaunch/common.a"
+USES_TEXT_PAGE_2
+ENABLE_ACCEL
lda #$60
sta $0813
jsr $0800 ; decompress
lda #$60
sta $363F
jsr $3600 ; memory move
lda #0
sta $0A01
lda #$2C
sta $0A05
lda #$A4
sta $0A09 ; reset vector patch
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
; lives in $74
lda #$A5
sta $1338 ; patch - don't decrease lives
sta $10A8 ; patch - don't increase lives
+
+DISABLE_ACCEL
jmp $0A00
!if * > $1C0 {
!error "code is too large, ends at ", *
}