mode7_demo: setup LZ4 compression code

only saves 1k or so currently
This commit is contained in:
Vince Weaver 2018-03-04 23:09:32 -05:00
parent a9d3c8c790
commit 816d6999a1
4 changed files with 44 additions and 1 deletions

View File

@ -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

View File

@ -1,3 +1,7 @@
Plan:
Load at $1000
Decompress to $2000
Memory Map
==========

View File

@ -6,3 +6,5 @@
+ Hide VMW logo in binary when loading
+ Improve the starfield demo
+ Centering in the credits

View 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"