mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-26 04:33:10 +00:00
convert Spy's Demise demo, save 19kb
This commit is contained in:
parent
9919aebe4f
commit
67ab4099a9
BIN
res/DEMO/SD
BIN
res/DEMO/SD
Binary file not shown.
@ -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
49
src/demo/spys.demise.a
Normal 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 ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user