|
#!/bin/sh -e
|
|
|
|
ASM="uxnasm"
|
|
EMU="uxncli"
|
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
|
|
|
SRC="opctest.tal"
|
|
DST="opctest.rom"
|
|
CPY="$HOME/roms"
|
|
ARG=""
|
|
|
|
if [[ "$*" == *"--lint"* ]]
|
|
then
|
|
$LIN $SRC
|
|
fi
|
|
|
|
$ASM $SRC $DST
|
|
|
|
if [[ "$*" == *"--save"* ]]
|
|
then
|
|
cp $DST $CPY
|
|
fi
|
|
|
|
$EMU $DST $ARG
|
|
|