mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-15 14:07:16 +00:00
15 lines
507 B
Bash
15 lines
507 B
Bash
|
#!/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
|
||
|
|