4cade/src/demo/brainteaserblvd.a
2022-09-30 20:04:02 -04:00

66 lines
1.2 KiB
Plaintext

;license:MIT
;(c) 2021-2022 by Frank M., qkumba
!cpu 6502
!to "build/DEMO/BB#060300",plain
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+ENABLE_ACCEL_LC
+LOAD_XSINGLE title
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
lda #$2C
sta $0C3E
sta $0C45
sta $0C48 ; skip inputs
ldx #3-1
- lda patch,x
sta $15CC,x
sta $0ED2,x
sta $159A,x ; set exits
dex
bpl -
lda #$D0
sta $170F
sta $0B61
sta $0B80
sta $0B9C
sta $0BBB
sta $1604
sta $1628
sta $1647
sta $0A95
sta $0AD4 ; disable sound
+DISABLE_ACCEL
jmp $0A00
patch !byte $4C,$00,$01
title !byte x_e-x_b
x_b !text "BB"
x_e
!if * > $3F0 {
!error "code is too large, ends at ", *
}