better uxnrun

This commit is contained in:
~d6 2021-12-23 01:01:00 -05:00
parent 8c67cae39a
commit a310addf5f
1 changed files with 12 additions and 1 deletions

11
uxnrun
View File

@ -2,4 +2,15 @@
BIN="$HOME/w/uxn/bin" BIN="$HOME/w/uxn/bin"
DEST="run.rom" DEST="run.rom"
if [ $# -lt 1 ]; then
echo "usage: $0 [-c] FILE.tal"
exit 1
fi
if [ "$1" = "-c" ]; then
shift
$BIN/uxnasm $1 $DEST && $BIN/uxncli $DEST
else
$BIN/uxnasm $1 $DEST && $BIN/uxnemu $DEST $BIN/uxnasm $1 $DEST && $BIN/uxnemu $DEST
fi