some fixes
authorceriel <none@none>
Mon, 9 Oct 1989 14:15:51 +0000 (14:15 +0000)
committerceriel <none@none>
Mon, 9 Oct 1989 14:15:51 +0000 (14:15 +0000)
mach/i86/ce/EM_table
mach/i86/ce/Makefile
mach/i86/ce/as.c

index db6bc9f..f8f946a 100644 (file)
@@ -413,6 +413,11 @@ C_dvf
                        "add sp,8".
   default      ==>     arg_error("C_dvf", $1).
 
+C_ngf
+  $1 == 4      ==>     "call .ngf4".
+  $1 == 8      ==>     "call .ngf8".
+  default      ==>     arg_error("C_ngf", $1).
+
 C_fif
   $1 == 4      ==>     C_lor((arith)1);
                        "call .fif4";
index 3679439..b08bc0f 100644 (file)
@@ -1,14 +1,15 @@
 EMHOME = ../../..
 CEG = $(EMHOME)/lib/ceg/util
+OBJ = obj
 
 all:
-       make -f $(CEG)/make_obj
+       make -f $(CEG)/make_asobj "OBJ="$(OBJ)
 
 install:
-       make -f $(CEG)/make_obj install
+       make -f $(CEG)/make_asobj "OBJ="$(OBJ) install
 
 cmp:
-       -make -f $(CEG)/make_obj cmp
+       -make -f $(CEG)/make_asobj "OBJ="$(OBJ) cmp
 
 pr:
        @pr Makefile EM_table mach.h mach.c as_table as.h as.c
@@ -18,8 +19,8 @@ opr:
 
 # total cleanup
 clean:
-       make -f $(CEG)/make_obj clean
+       make -f $(CEG)/make_asobj "OBJ="$(OBJ) clean
 
 # only remove ce, ceg, and back directories
 dclean:
-       make -f $(CEG)/make_obj dclean
+       make -f $(CEG)/make_asobj "OBJ="$(OBJ) dclean
index 9d7d1dc..b340e60 100644 (file)
@@ -68,11 +68,11 @@ struct t_operand *op;
  *     expr(reg)       ->      IS_MEM
  */
 {
-       char *ptr, *index();
+       char *ptr, *strindex();
 
        op->type = UNKNOWN;
        if ( *last( str) == RIGHT) {
-               ptr = index( str, LEFT);
+               ptr = strindex( str, LEFT);
                *last( str) = '\0';
                *ptr = '\0';
                if ( is_reg( ptr+1, op)) {
@@ -184,10 +184,10 @@ set_label( str, op)
 char *str;
 struct t_operand *op;
 {
-       char *ptr, *index(), *sprint();
+       char *ptr, *strindex(), *sprint();
        static char buf[256];
 
-       ptr = index( str, '+');
+       ptr = strindex( str, '+');
 
        if ( ptr == 0)
                op->off = "0";
@@ -204,7 +204,7 @@ struct t_operand *op;
        }
        else {
                op->type = IS_LABEL;
-               if ( index( str, DOLLAR) != 0)
+               if ( strindex( str, DOLLAR) != 0)
                        op->lab = str;
                else 
                        /* nood oplossing */