1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-25 18:47:56 +00:00

added scr2floyd utils

This commit is contained in:
Steven Hugg
2018-11-27 15:14:22 -05:00
parent 13a6f92d7b
commit b52f3c2271
10 changed files with 428 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
all: binaries images/parrot.c
%.hex: %
cat $< | hexdump -v -e '"\n.byte" 16/1 ",0x%02x"' | sed "s/byte,/byte /" > $@
%.c: %.CHR.lzg.hex %.CLR.lzg.hex
echo "// MSX mode 2 data" > $@
xxd -i $(word 1,$^) >> $@
xxd -i $(word 2,$^) >> $@
%.lzg: %
lzg -9 $< $@
%.CHR: %.tga
./scr2floyd_percept $<
binaries: scr2floyd scr2floyd_percept galois
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
./scr2floyd_percept $1.tga
lzg -9 $1.CHR > $1.CHR.lzg
lzg -9 $1.CLR > $1.CLR.lzg
rm -f $1.s
echo "\t.area _CODE" >> $1.s
echo "\t.globl _msx_mode2_pattern_lzg" >> $1.s
echo "\t.globl _msx_mode2_color_lzg" >> $1.s
echo "\n_msx_mode2_pattern_lzg:" >> $1.s
cat $1.CHR.lzg | hexdump -v -e '"\n.db " 16/1 ",0x%02x"' | sed "s/n.db,/ .db /" | tail -n +3 >> $1.s
echo "\n_msx_mode2_color_lzg:" >> $1.s
cat $1.CLR.lzg | hexdump -v -e '"\n.db " 16/1 ",0x%02x"' | sed "s/n.db,/ .db /" | tail -n +3 >> $1.s
Binary file not shown.