2023-09-05 19:38:16 -04:00
|
|
|
#!/bin/sh
|
2023-05-24 12:46:15 -04:00
|
|
|
|
|
|
|
ID="b64enc"
|
|
|
|
ASM="uxncli $HOME/roms/drifblim.rom"
|
|
|
|
EMU="uxncli"
|
|
|
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
|
|
|
SRC="${ID}.tal"
|
|
|
|
DST="${ID}.rom"
|
|
|
|
CPY="$HOME/roms"
|
2023-09-05 19:38:16 -04:00
|
|
|
ARG="Many hands make light work."
|
2023-05-24 12:46:15 -04:00
|
|
|
|
|
|
|
if [[ "$*" == *"--lint"* ]]
|
|
|
|
then
|
|
|
|
$LIN $SRC
|
|
|
|
fi
|
|
|
|
|
|
|
|
$ASM $SRC $DST
|
|
|
|
|
|
|
|
if [[ "$*" == *"--save"* ]]
|
|
|
|
then
|
|
|
|
cp $DST $CPY
|
|
|
|
fi
|
|
|
|
|
2023-09-05 19:38:16 -04:00
|
|
|
echo "source: ${ARG}"
|
2023-09-05 18:44:49 -04:00
|
|
|
echo "target: TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu"
|
|
|
|
echo -n "result: "
|
2023-09-05 19:38:16 -04:00
|
|
|
echo -n "${ARG}" | $EMU $DST
|
|
|
|
echo ""
|
2023-05-24 12:46:15 -04:00
|
|
|
|