global: Small fixes to asm scripts ("==" problem)
[h316.git] / bin / asm
diff --git a/bin/asm b/bin/asm
index d686a53d59d10ca60e046d5dace361ee35084626..03336f9b4ccbb2876dd6b871d87383f55900de2a 100755 (executable)
--- a/bin/asm
+++ b/bin/asm
@@ -2,14 +2,14 @@
 # Assembler wrapper for simh h316
 
 if [ ! $1 ] ; then
-    echo "Argument missing!"
+    echo -e "Assembler: Input file missing!"
     exit 2
 fi
 
-echo -e "\nAssembler: Translating \"$1\":"
+echo -en "Assembler: Translating \"$1\":"
 
 for n in $*; do
-  if [ $n == "/v" ]; then
+  if [ $n = "/v" ]; then
     VERBOSE=yes
   fi
 done
@@ -38,7 +38,7 @@ go
 quit 
 EOF
 
-if [ "$VERBOSE" == "yes" ]; then
+if [ "$VERBOSE" = "yes" ]; then
   h316 $name.go 
 else
   h316 $name.go > /dev/null
@@ -51,11 +51,11 @@ if cat $name.lst | grep "NO ERRORS IN ABOVE ASSEMBLY">/dev/null 2>&1; then
                rm -f $name.par
                rm -f $name.go
        fi
-       echo "Assembler: Success."
+       echo " Success."
        exit 0
 fi
 cat $name.lst
-echo -e "Assembler: Failed."
+echo -e " FAILED!"
 rm -f $name.obj
 exit 77