Pristine Ack-5.5
[Ack-5.5.git] / mach / 6500 / cg / mach.h
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 /* $Id: mach.h,v 1.8 1994/06/24 12:54:29 ceriel Exp $ */
6
7 #define ex_ap(y)        fprintf(codefile,".extern %s\n",y)
8 #define in_ap(y)        /* nothing */
9
10 #define newilb(x)       fprintf(codefile,"%s:\n",x)
11 #define newdlb(x)       fprintf(codefile,"%s:\n",x)
12 #define dlbdlb(x,y)     fprintf(codefile,"%s = %s\n",x,y)
13 #define newlbss(l,x)    fprintf(codefile,".comm %s,%u\n",l,x);
14
15 #define cst_fmt         "%d"
16 #define off_fmt         "%d"
17 #define ilb_fmt         "I%x_%x"
18 #define dlb_fmt         "_%d"
19 #define hol_fmt         "hol%d"
20
21 #define hol_off         "%ld+hol%d"
22
23 #define con_cst(x)      fprintf(codefile,".data2\t%ld\n",x)
24 #define con_ilb(x)      fprintf(codefile,".data2\t%s\n",x)
25 #define con_dlb(x)      fprintf(codefile,".data2\t%s\n",x)
26
27 #define modhead         ".sect .zero; .sect .text; .sect .rom; .sect .data; .sect .bss\n"
28
29 #define fmt_id(ft, fs)  sprintf(fs,"_%s",ft)
30
31 #define BSS_INIT        0