2021-10-27 00:11:02 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-10-01 00:04:02 +00:00
|
|
|
!to "build/DEMO/STAR.BLAZER#060300",plain
|
2021-10-27 00:11:02 +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 05:36:52 +00:00
|
|
|
+LOAD_XSINGLE title
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
lda #$60
|
|
|
|
sta $722A
|
|
|
|
sta $725D
|
|
|
|
jsr $4A58 ; decompress
|
|
|
|
+DISABLE_ACCEL
|
|
|
|
jsr $4400
|
|
|
|
+ENABLE_ACCEL
|
|
|
|
jsr $B4C6 ; decompress
|
|
|
|
|
2022-09-28 04:45:21 +00:00
|
|
|
ldx #3-1
|
2022-09-27 17:20:04 +00:00
|
|
|
- lda patch,x
|
|
|
|
sta $17DB,x
|
|
|
|
sta $1760,x
|
|
|
|
sta $17AD,x ; set exits
|
|
|
|
lda patch2,x
|
|
|
|
sta $1705,x ; decrement custom counter after demo cycle and eventually exit
|
|
|
|
dex
|
|
|
|
bpl -
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
+DISABLE_ACCEL
|
|
|
|
jmp ($20)
|
|
|
|
|
|
|
|
count !byte $03
|
|
|
|
dec count
|
2022-09-27 17:20:04 +00:00
|
|
|
bmi patch
|
|
|
|
jmp $1750
|
|
|
|
|
|
|
|
patch !byte $4C,$00,$01
|
|
|
|
patch2 !byte $4C,<(count + 1),>(count + 1)
|
2021-10-27 00:11:02 +00:00
|
|
|
|
2024-05-25 21:24:57 +00:00
|
|
|
title +PSTRING "STAR.BLAZER"
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|