2023-03-17 23:24:31 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
ASM="uxncli $HOME/roms/drifblim.rom"
|
2023-03-17 23:50:51 -04:00
|
|
|
EMU="uxnemu"
|
2023-03-17 23:24:31 -04:00
|
|
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
|
|
|
APP="$HOME/bin/butler push"
|
|
|
|
|
2023-03-17 23:50:51 -04:00
|
|
|
SRC="soroban.tal"
|
|
|
|
DST="soroban.rom"
|
2023-03-17 23:24:31 -04:00
|
|
|
|
|
|
|
CPY="$HOME/roms"
|
|
|
|
ARG=""
|
|
|
|
|
|
|
|
echo ">> Cleaning"
|
|
|
|
rm -rf bin
|
|
|
|
mkdir bin
|
|
|
|
|
|
|
|
if [[ "$*" == *"--lint"* ]]
|
|
|
|
then
|
|
|
|
echo ">> Linting $SRC"
|
|
|
|
$LIN $SRC
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ">> Assembling $SRC"
|
|
|
|
$ASM $SRC $DST
|
|
|
|
|
|
|
|
if [[ "$*" == *"--save"* ]]
|
|
|
|
then
|
|
|
|
echo ">> Saving $DST"
|
|
|
|
cp $DST $CPY
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ">> Running $DST"
|
|
|
|
$EMU $DST $ARG
|
|
|
|
|