2023-10-19 15:36:00 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
ASM="uxncli $HOME/roms/drifblim.rom"
|
|
|
|
EMU="uxnemu"
|
|
|
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
|
|
|
|
|
|
|
ID="sixels"
|
|
|
|
SRC="${ID}.tal"
|
|
|
|
DST="${ID}.rom"
|
|
|
|
|
|
|
|
CPY="$HOME/roms"
|
2023-10-28 23:42:34 -04:00
|
|
|
ARG="dafu.sixels"
|
2023-10-19 15:36:00 -04:00
|
|
|
|
|
|
|
if [[ "$*" == *"--lint"* ]]
|
|
|
|
then
|
|
|
|
$LIN $SRC
|
|
|
|
fi
|
|
|
|
|
|
|
|
$ASM $SRC $DST
|
|
|
|
|
|
|
|
if [[ "$*" == *"--save"* ]]
|
|
|
|
then
|
|
|
|
cp $DST $CPY
|
|
|
|
fi
|
|
|
|
|
2023-10-28 23:42:34 -04:00
|
|
|
# convert an image to sixels
|
|
|
|
|
|
|
|
$ASM icnsix.tal icnsix.rom
|
2023-10-29 15:21:40 -04:00
|
|
|
uxncli icnsix.rom dafu10x10.icn > dafu.sixels
|
|
|
|
# uxncli icnsix.rom test02x02.icn > dafu.sixels
|
2023-10-28 23:42:34 -04:00
|
|
|
|
2023-10-19 15:36:00 -04:00
|
|
|
$EMU $DST $ARG
|
|
|
|
|