Pristine Ack-5.5
[Ack-5.5.git] / mach / z80 / 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 #ifndef NORCSID
6 #define RCS_H           "$Id: mach.h,v 2.6 1994/06/24 13:55:15 ceriel Exp $"
7 #endif
8
9 #define ex_ap(y)        fprintf(codefile,".extern %s\n",y)
10 #define in_ap(y)        /* nothing */
11
12 #define newilb(x)       fprintf(codefile,"%s:\n",x)
13 #define newdlb(x)       fprintf(codefile,"%s:\n",x)
14 #define dlbdlb(x,y)     fprintf(codefile,"%s = %s\n",x,y)
15 #define newlbss(l,x)    fprintf(codefile,".comm %s,%u\n",l,x);
16
17 #define cst_fmt         "%d"
18 #define off_fmt         "%d"
19 #define ilb_fmt         "I%x_%x"
20 #define dlb_fmt         "_%d"
21 #define hol_fmt         "hol%d"
22
23 #define loc_off         "%d(bp)"
24 #define arg_off         "4+%d(bp)"
25 #define hol_off         "%ld+hol%d"
26
27 #define con_cst(x)      fprintf(codefile,".data2\t%ld\n",x)
28 #define con_ilb(x)      fprintf(codefile,".data2\t%s\n",x)
29 #define con_dlb(x)      fprintf(codefile,".data2\t%s\n",x)
30
31 #define modhead         ".sect .text; .sect .rom; .sect .data; .sect .bss\n"
32
33 #define fmt_id(fs, ft)  sprintf(ft, "_%s", fs)
34
35 #define BSS_INIT        0