convert Spy's Demise demo, save 19kb

This commit is contained in:
Peter Ferrie 2022-07-21 17:55:11 -07:00
parent 9919aebe4f
commit 67ab4099a9
3 changed files with 50 additions and 1 deletions

Binary file not shown.

View File

@ -83,7 +83,7 @@ SPCARTOON.55=Type(06),AuxType(0200),Access(C3)
SPCARTOON.66=Type(06),AuxType(0200),Access(C3)
SPIDER.RAID=Type(06),AuxType(0300),Access(C3)
SPY.HUNTER=Type(06),AuxType(0200),Access(C3)
SD=Type(06),AuxType(3FF1),Access(C3)
SD=Type(06),AuxType(0300),Access(C3)
STAR.BLAZER=Type(06),AuxType(0300),Access(C3)
STARGATE=Type(06),AuxType(0200),Access(C3)
STELLAR.7=Type(06),AuxType(0200),Access(C3)

49
src/demo/spys.demise.a Normal file
View File

@ -0,0 +1,49 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "res/DEMO/SD",plain
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_KEEP_DIR sd, sd_dir_e-sd_dir_b
lda #$60
sta $0853
jsr $0800 ; decompress
lda #$4C
sta $60D1
sta $69B9
ldx #0
stx $60D2
stx $69BA
stx $6D71
stx $72F3
inx
stx $60D3
stx $69BB
stx $6D72
asl $7324
inc $7325
lda #$15
sta $732A
inc $732B
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $6000
sd
!byte sd_e-sd_b
sd_b
sd_dir_b
!text "X/SD"
sd_dir_e
!text "/SD"
sd_e
!if * > $3F0 {
!error "code is too large, ends at ", *
}