Added some includes
[h316.git] / bin / asm
diff --git a/bin/asm b/bin/asm
index 08adc2853091ef57785356cff80db2ca6154f71b..0fabd8d65d64d55d9ac9db99635af1a233e3e29a 100755 (executable)
--- a/bin/asm
+++ b/bin/asm
@@ -2,10 +2,12 @@
 # Assembler wrapper for simh h316
 
 if [ ! $1 ] ; then
-    echo "Argument missing!"
+    echo -e "Assembler: Input file missing!"
     exit 2
 fi
 
+echo -en "Assembler: Translating \"$1\":"
+
 for n in $*; do
   if [ $n == "/v" ]; then
     VERBOSE=yes
@@ -42,18 +44,18 @@ else
   h316 $name.go > /dev/null
 fi
 
-rm -f $name.par
-rm -f $name.go
 
 if cat $name.lst | grep "NO ERRORS IN ABOVE ASSEMBLY">/dev/null 2>&1; then
        if [ !  $2  ]; then
                rm $name.lst
+               rm -f $name.par
+               rm -f $name.go
        fi
-       echo "DAP-16 assembly successfull :-)"
+       echo " Success."
        exit 0
 fi
 cat $name.lst
-echo -e "\nDAP-16 assembly FAILED!"
+echo -e " FAILED!"
 rm -f $name.obj
 exit 77