2021-10-02 17:13:22 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2021 by qkumba
|
|
|
|
|
|
|
|
!cpu 6502
|
|
|
|
!to "res/DEMO/SPACE.QUARKS",plain
|
|
|
|
*=$B000
|
|
|
|
|
2021-10-19 23:14:39 +00:00
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
2021-10-02 17:13:22 +00:00
|
|
|
|
|
|
|
+READ_RAM2_WRITE_RAM2
|
|
|
|
jsr EnableAccelerator
|
|
|
|
+LOAD_FILE_AT space_quarks, $00
|
|
|
|
lda #$4C
|
|
|
|
sta $3EC9
|
|
|
|
jsr $3E65 ; decompress/set reset vector
|
2021-10-22 16:27:43 +00:00
|
|
|
+RESET_AND_IRQ_VECTOR $100
|
2021-10-02 17:13:22 +00:00
|
|
|
lda #$EA
|
|
|
|
sta $1C38
|
|
|
|
sta $1C39
|
|
|
|
sta $1C3A
|
|
|
|
sta $0D6F
|
|
|
|
sta $0D70
|
|
|
|
sta $0D71
|
|
|
|
lda #$4C
|
|
|
|
sta $1C3F
|
|
|
|
sta $0D76
|
|
|
|
ldx #0
|
|
|
|
stx $1C40
|
|
|
|
stx $0D77
|
|
|
|
inx
|
|
|
|
stx $1C41
|
|
|
|
stx $0D78
|
|
|
|
ldx #16
|
|
|
|
- lda patch, x
|
|
|
|
sta $72BD, x
|
|
|
|
dex
|
|
|
|
bpl -
|
|
|
|
jsr DisableAccelerator
|
|
|
|
+READ_ROM_NO_WRITE
|
|
|
|
jmp $20A
|
|
|
|
|
|
|
|
space_quarks
|
|
|
|
!byte 27
|
|
|
|
!text "X/SPACE.QUARKS/SPACE.QUARKS"
|
|
|
|
|
2021-10-19 23:27:04 +00:00
|
|
|
patch !byte $F0,$08,$AD,$00,$C0,$10,$0D,$4C,$00,$01,$CE,$24,$02,$F0,$F8,$68,$68
|