From: ceriel Date: Thu, 8 Jan 1987 09:39:54 +0000 (+0000) Subject: Adapted to new assembler syntax. X-Git-Tag: release-5-5~5053 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0fd6417833a9a277455f095bbc1ed2fb5a99af44;p=ack.git Adapted to new assembler syntax. --- diff --git a/mach/i86/cg/mach.c b/mach/i86/cg/mach.c index aca612b14..84f2ccaad 100644 --- a/mach/i86/cg/mach.c +++ b/mach/i86/cg/mach.c @@ -48,7 +48,7 @@ con_mult(sz) word sz; { if (sz != 4) fatal("bad icon/ucon size"); l = atol(str); - fprintf(codefile,"\t.word %d,%d\n", + fprintf(codefile,"\t.data2 %d,%d\n", (int)l&0xFFFF,(int)(l>>16)&0xFFFF); } @@ -59,7 +59,7 @@ con_float() { if (i!= 4 && i!= 8) fatal("bad fcon size"); while ( i ) { - fprintf(codefile," .word 0,0\n") ; + fprintf(codefile," .data2 0,0\n") ; i -=4 ; } } @@ -109,8 +109,8 @@ mes(type) word type ; { } char *segname[] = { - ".text", /* SEGTXT */ - ".data", /* SEGCON */ - ".data", /* SEGROM */ - ".bss" /* SEGBSS */ + ".sect .text", /* SEGTXT */ + ".sect .data", /* SEGCON */ + ".sect .rom", /* SEGROM */ + ".sect .bss" /* SEGBSS */ }; diff --git a/mach/i86/cg/mach.h b/mach/i86/cg/mach.h index 139393eb9..8410ca9a5 100644 --- a/mach/i86/cg/mach.h +++ b/mach/i86/cg/mach.h @@ -20,11 +20,12 @@ #define arg_off "4+%d(bp)" #define hol_off "%d+hol%d" -#define con_cst(x) fprintf(codefile,".word\t%d\n",x) -#define con_ilb(x) fprintf(codefile,".word\t%s\n",x) -#define con_dlb(x) fprintf(codefile,".word\t%s\n",x) +#define con_cst(x) fprintf(codefile,".data2\t%d\n",x) +#define con_ilb(x) fprintf(codefile,".data2\t%s\n",x) +#define con_dlb(x) fprintf(codefile,".data2\t%s\n",x) -#define modhead "" +#define modhead ".sect .text; .sect .rom; .sect .data; .sect .bss\n" + +#define fmt_id(fr,to) sprintf(to, "_%s", fr) -#define id_first '_' #define BSS_INIT 0