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