mach.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /* $Header$ */
  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. #define newilb(x) fprintf(codefile,"%s:\n",x)
  9. #define newdlb(x) fprintf(codefile,"%s:\n",x)
  10. #define dlbdlb(x,y) fprintf(codefile,"%s = %s\n",x,y)
  11. #define newlbss(l,x) fprintf(codefile,"%s:\t.space %d\n",l,x);
  12. #define cst_fmt "%d"
  13. #define off_fmt "%d"
  14. #define ilb_fmt "I%x_%x"
  15. #define dlb_fmt "_%d"
  16. #define hol_fmt "hol%d"
  17. #define hol_off "%d+hol%d"
  18. #define con_cst(x) fprintf(codefile,"\t.data2 %d\n",x)
  19. #define con_ilb(x) fprintf(codefile,"\t.data2 %s\n",x)
  20. #define con_dlb(x) fprintf(codefile,"\t.data2 %s\n",x)
  21. #define modhead ".sect .text; .sect .rom; .sect .data; .sect .bss\n"
  22. #define fmt_id(sf,st) sprintf(st,"_%s", sf)
  23. #define BSS_INIT 0