2021-10-31 16:39:38 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-10-01 00:04:02 +00:00
|
|
|
!to "build/DEMO/BB#060300",plain
|
2021-10-31 16:39:38 +00:00
|
|
|
*=$300
|
|
|
|
|
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
+ENABLE_ACCEL_LC
|
2022-09-10 04:58:15 +00:00
|
|
|
+LOAD_XSINGLE title
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #3-1
|
|
|
|
- lda patch,x
|
|
|
|
sta $15CC,x
|
|
|
|
sta $0ED2,x
|
|
|
|
sta $159A,x ; set exits
|
|
|
|
dex
|
|
|
|
bpl -
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
patch !byte $4C,$00,$01
|
|
|
|
|
2021-10-31 16:39:38 +00:00
|
|
|
title !byte x_e-x_b
|
2022-09-10 04:58:15 +00:00
|
|
|
x_b !text "BB"
|
2021-10-31 16:39:38 +00:00
|
|
|
x_e
|
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|