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:
@@ -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
|
||||
|
||||
Executable
+14
@@ -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.
Reference in New Issue
Block a user