4cade/src/demo/space.quarks.a
2023-04-17 10:49:15 -07:00

47 lines
926 B
Plaintext

;license:MIT
;(c) 2021-2022 by qkumba
!cpu 6502
!to "build/DEMO/SPACE.QUARKS#06BE00",plain
*=$BE00
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+ENABLE_ACCEL_LC
+LOAD_XSINGLE title
lda #$4C
sta $3EC9
jsr $3E65 ; decompress/set reset vector
+RESET_AND_IRQ_VECTOR $100
ldx #3-1
- lda #$EA
sta $1C38,x
sta $0D6F,x
lda patch2,x
sta $1C3F,x
sta $0D76,x
dex
bpl -
ldx #16
- lda patch, x
sta $72BD, x
dex
bpl -
+DISABLE_ACCEL
jmp $20A
title !byte x_e-x_b
x_b !text "SPACE.QUARKS"
x_e
patch !byte $F0,$08,$AD,$00,$C0,$10,$0D
patch2 !byte $4C,$00,$01,$CE,$24,$02,$F0,$F8,$68,$68
!if * > $BEFF {
!error "code is too large, ends at ", *
}