some minor changes
authorceriel <none@none>
Thu, 20 Oct 1988 14:33:55 +0000 (14:33 +0000)
committerceriel <none@none>
Thu, 20 Oct 1988 14:33:55 +0000 (14:33 +0000)
mach/m68020/ce/EM_table
mach/m68020/ce/as.c
mach/m68020/ce/mach.h
mach/sun3/ce/as.c

index ad0155b..0b7aed2 100644 (file)
@@ -858,6 +858,6 @@ C_trp               ==>     "jsr (.trp)".
 
 prolog         ==>     .
 
-jump           ==>     "jmp $1".
+jump           ==>     "bra $1".
 
 locals         ==>     "link a6, #-$1".
index abf819f..ac86991 100644 (file)
@@ -18,8 +18,8 @@ char *m;
 
 
 process_operand( str, op)
-char *str;
-struct t_operand *op;
+register char *str;
+register struct t_operand *op;
 {
        char *glob_lbl();
 
@@ -171,7 +171,7 @@ char *reg;
 }
 
 int is_reg( str)
-char *str;
+register char *str;
 {
        switch ( *str) {
          case 'a' :
@@ -187,9 +187,9 @@ char *str;
 char *glob_lbl( lbl)
 char *lbl;
 {
-       char *gl, *malloc();
+       char *gl, *Malloc();
 
-       gl = malloc( strlen( lbl) + 3);
+       gl = Malloc( strlen( lbl) + 3);
        sprintf( gl, "\"%s\"", lbl);
        return( gl);
 }
@@ -199,7 +199,7 @@ char *lbl;
 
 
 int mode_reg( eaddr)
-struct t_operand *eaddr;
+register struct t_operand *eaddr;
 {
        switch ( eaddr->type) {
          case IS_A_REG         : return( 0x08 | eaddr->reg);
@@ -240,7 +240,7 @@ struct t_operand *eaddr;
 
 
 code_extension( eaddr)
-struct t_operand *eaddr;
+register struct t_operand *eaddr;
 {
 
        switch ( eaddr->type) {
@@ -341,9 +341,9 @@ struct t_operand *dst;
 
 
 int two_log( nr)
-int nr;
+register int nr;
 {
-       int log;
+       register int log;
 
        for ( log = 0; nr >= 2; nr >>= 1)
                log++;
index 4630aef..1cbd4f9 100644 (file)
@@ -1,8 +1,8 @@
 #define BYTES_REVERSED
 #define WORDS_REVERSED
 
-#define ONE_BYTE        char
-#define TWO_BYTES      short
+#define ONE_BYTE        int
+#define TWO_BYTES      int
 #define FOUR_BYTES     long
 
 #define EM_WSIZE       4
 
 #define NAME_FMT       "_%s"
 #define DNAM_FMT       "_%s"
-#define DLB_FMT                "_%ld"
+#define DLB_FMT                "I_%ld"
 #define        ILB_FMT         "I%x_%lx"
 #define HOL_FMT                "hol%d"
 
+#define GENLAB         'I'
+
 #define        ALIGN_FMT               ".align\n"
 
 #define        BYTE_FMT                ".data1 %ld\n"
index abf819f..ac86991 100644 (file)
@@ -18,8 +18,8 @@ char *m;
 
 
 process_operand( str, op)
-char *str;
-struct t_operand *op;
+register char *str;
+register struct t_operand *op;
 {
        char *glob_lbl();
 
@@ -171,7 +171,7 @@ char *reg;
 }
 
 int is_reg( str)
-char *str;
+register char *str;
 {
        switch ( *str) {
          case 'a' :
@@ -187,9 +187,9 @@ char *str;
 char *glob_lbl( lbl)
 char *lbl;
 {
-       char *gl, *malloc();
+       char *gl, *Malloc();
 
-       gl = malloc( strlen( lbl) + 3);
+       gl = Malloc( strlen( lbl) + 3);
        sprintf( gl, "\"%s\"", lbl);
        return( gl);
 }
@@ -199,7 +199,7 @@ char *lbl;
 
 
 int mode_reg( eaddr)
-struct t_operand *eaddr;
+register struct t_operand *eaddr;
 {
        switch ( eaddr->type) {
          case IS_A_REG         : return( 0x08 | eaddr->reg);
@@ -240,7 +240,7 @@ struct t_operand *eaddr;
 
 
 code_extension( eaddr)
-struct t_operand *eaddr;
+register struct t_operand *eaddr;
 {
 
        switch ( eaddr->type) {
@@ -341,9 +341,9 @@ struct t_operand *dst;
 
 
 int two_log( nr)
-int nr;
+register int nr;
 {
-       int log;
+       register int log;
 
        for ( log = 0; nr >= 2; nr >>= 1)
                log++;