Execute_mnemonic() is changed so it won't loop when it can't find the
authorkaashoek <none@none>
Tue, 31 May 1988 12:54:30 +0000 (12:54 +0000)
committerkaashoek <none@none>
Tue, 31 May 1988 12:54:30 +0000 (12:54 +0000)
assembly-mnemonic in the as_table.

util/ceg/assemble/obj_assemble/assemble.c

index 5f55d3b..3b54b79 100644 (file)
@@ -207,8 +207,10 @@ char *mnem;
 
                if ( rel == 0 )
                        break;
-               else if ( high == low)
+               else if ( high == low) {
                        error( "can't find %s", mnem);
+                       return;
+               }
                else if ( rel < 0)
                        high = mid;
                else