2021-12-19 15:57:09 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
BIN="$HOME/w/uxn/bin"
|
|
|
|
DEST="run.rom"
|
2021-12-23 01:01:00 -05:00
|
|
|
|
|
|
|
if [ $# -lt 1 ]; then
|
|
|
|
echo "usage: $0 [-c] FILE.tal"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-01-22 22:55:01 -05:00
|
|
|
case "$1" in
|
|
|
|
-c) $BIN/uxnasm $2 $DEST && $BIN/uxncli $DEST;;
|
|
|
|
-s) $BIN/uxnasm $3 $DEST && $BIN/uxnemu -s $2 $DEST;;
|
|
|
|
*) $BIN/uxnasm $1 $DEST && $BIN/uxnemu $DEST;;
|
|
|
|
esac
|