nxu/uxnrun

17 lines
256 B
Bash
Executable File

#!/bin/sh
BIN="$HOME/w/uxn/bin"
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
fi