mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-28 14:30:52 +00:00
mode7_demo: setup LZ4 compression code
only saves 1k or so currently
This commit is contained in:
parent
a9d3c8c790
commit
816d6999a1
@ -9,11 +9,26 @@ all: mode7_demo.dsk
|
||||
$(DOS33):
|
||||
cd ../dos33fs-utils && make
|
||||
|
||||
mode7_demo.dsk: $(DOS33) MODE7_DEMO
|
||||
mode7_demo.dsk: $(DOS33) MODE7_DEMO MODE7_DEMO_C
|
||||
$(DOS33) -y mode7_demo.dsk BSAVE -a 0x2000 MODE7_DEMO
|
||||
$(DOS33) -y mode7_demo.dsk BSAVE -a 0x1000 MODE7_DEMO_C
|
||||
|
||||
|
||||
|
||||
###
|
||||
|
||||
MODE7_DEMO_C: mode7_decompress.o
|
||||
ld65 -o MODE7_DEMO_C mode7_decompress.o -C ../linker_scripts/apple2_1000.inc
|
||||
|
||||
mode7_decompress.o: mode7_decompress.s MODE7_DEMO.lz4 \
|
||||
../asm_routines/lz4_decode.s \
|
||||
zp.inc
|
||||
ca65 -o mode7_decompress.o mode7_decompress.s
|
||||
|
||||
|
||||
MODE7_DEMO.lz4: MODE7_DEMO
|
||||
lz4 -f -16 MODE7_DEMO
|
||||
|
||||
###
|
||||
|
||||
MODE7_DEMO: mode7_demo.o
|
||||
|
@ -1,3 +1,7 @@
|
||||
Plan:
|
||||
Load at $1000
|
||||
Decompress to $2000
|
||||
|
||||
Memory Map
|
||||
==========
|
||||
|
||||
|
@ -6,3 +6,5 @@
|
||||
+ Hide VMW logo in binary when loading
|
||||
+ Improve the starfield demo
|
||||
|
||||
+ Centering in the credits
|
||||
|
||||
|
22
mode7_demo/mode7_decompress.s
Normal file
22
mode7_demo/mode7_decompress.s
Normal file
@ -0,0 +1,22 @@
|
||||
; Note: needs some extra work
|
||||
; Set up initial pointer
|
||||
; Skip/strip the LZ4 header
|
||||
|
||||
.include "zp.inc"
|
||||
|
||||
UNPACK_BUFFER EQU $2000
|
||||
|
||||
start:
|
||||
jsr lz4_decode
|
||||
|
||||
jmp $2000
|
||||
|
||||
;===============================================
|
||||
; External modules
|
||||
;===============================================
|
||||
|
||||
.include "../asm_routines/lz4_decode.s"
|
||||
|
||||
data:
|
||||
.incbin "MODE7_DEMO.lz4"
|
||||
|
Loading…
x
Reference in New Issue
Block a user