4cade/src/demo/laser.bounce.a

58 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-07-19 23:22:13 +00:00
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
2022-10-01 00:04:02 +00:00
!to "build/DEMO/LASER.BOUNCE#060300",plain
2022-07-19 23:22:13 +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
2022-07-19 23:22:13 +00:00
lda #$2C
sta $3ECB
lsr $3ECF
lda #$60
sta $3F06
jsr $3E69 ; decompress
sta $743F
sta $7425
sta $888C
2022-09-27 17:20:04 +00:00
ldx #3-1
- lda patch2,x
sta $6006,x
lda patch,x
sta $600B,x
sta $6E41,x
sta $6E98,x
dex
bpl -
2022-07-19 23:22:13 +00:00
lda #4
sta $6E2B
lda #$30
sta $6E95
2022-09-27 17:20:04 +00:00
ldx #1
2022-07-19 23:22:13 +00:00
stx $6E96
asl
sta $6E97
sta $6ECC
2022-09-10 04:58:15 +00:00
+DISABLE_ACCEL
2022-07-19 23:22:13 +00:00
jmp $6000
counter !byte 3
2022-09-27 17:20:04 +00:00
patch !byte $4C,$00,$01
patch2 !byte $CE,<counter,>counter
2022-07-19 23:22:13 +00:00
title !byte x_e-x_b
2022-09-10 04:58:15 +00:00
x_b !text "LASER.BOUNCE"
2022-07-19 23:22:13 +00:00
x_e
!if * > $3F0 {
!error "code is too large, ends at ", *
}