From: ceriel Date: Thu, 20 Oct 1988 14:33:55 +0000 (+0000) Subject: some minor changes X-Git-Tag: release-5-5~2780 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=dc5a744d8ddf988f9cc47bb242c06ebeb9140c6c;p=ack.git some minor changes --- diff --git a/mach/m68020/ce/EM_table b/mach/m68020/ce/EM_table index ad0155b78..0b7aed2bc 100644 --- a/mach/m68020/ce/EM_table +++ b/mach/m68020/ce/EM_table @@ -858,6 +858,6 @@ C_trp ==> "jsr (.trp)". prolog ==> . -jump ==> "jmp $1". +jump ==> "bra $1". locals ==> "link a6, #-$1". diff --git a/mach/m68020/ce/as.c b/mach/m68020/ce/as.c index abf819fe0..ac869915b 100644 --- a/mach/m68020/ce/as.c +++ b/mach/m68020/ce/as.c @@ -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++; diff --git a/mach/m68020/ce/mach.h b/mach/m68020/ce/mach.h index 4630aefd6..1cbd4f96c 100644 --- a/mach/m68020/ce/mach.h +++ b/mach/m68020/ce/mach.h @@ -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 @@ -13,10 +13,12 @@ #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" diff --git a/mach/sun3/ce/as.c b/mach/sun3/ce/as.c index abf819fe0..ac869915b 100644 --- a/mach/sun3/ce/as.c +++ b/mach/sun3/ce/as.c @@ -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++;