some minor changes

This commit is contained in:
ceriel 1988-10-20 14:33:55 +00:00
parent e0fc646222
commit dc5a744d8d
4 changed files with 24 additions and 22 deletions

View file

@ -858,6 +858,6 @@ C_trp ==> "jsr (.trp)".
prolog ==> .
jump ==> "jmp $1".
jump ==> "bra $1".
locals ==> "link a6, #-$1".

View 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++;

View 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
@ -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"

View 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++;