 #
BIN1=/bin
BIN2=/u1/rdg/bin

if /bin/test -f $1.s ; then
echo
echo -n "Assemble..."
$BIN1/as -o $1.tmp $1.s
$BIN1/strip $1.tmp
echo -n " Hex convert..."
$BIN2/obj2hex $1.tmp
echo " load \"${1}.memX\" file(s):"
$BIN2/hex2sim $1.tmp.hex ${1}.mem 8 2
rm $1.tmp
mv $1.tmp.hex $1.hex
echo
else
echo "$1.s does not exist..."
fi
