mach.h 1000 B

12345678910111213141516171819202122232425262728293031323334
  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:.space\t%ld\n",l,x);
  12. #define pop_fmt "(sp)+"
  13. #define cst_fmt "%ld"
  14. #define off_fmt "%ld"
  15. #define ilb_fmt "I%x_%x"
  16. #define dlb_fmt "_%d"
  17. #define hol_fmt "hol%d"
  18. #define loc_off "%d(a6)"
  19. #define arg_off "8+%d(a6)"
  20. #define hol_off "%d+hol%d"
  21. #define con_cst(x) fprintf(codefile,".data2\t%d\n",x)
  22. #define con_ilb(x) fprintf(codefile,".data4\t%s\n",x)
  23. #define con_dlb(x) fprintf(codefile,".data4\t%s\n",x)
  24. #define fmt_id(fr,to) sprintf(to, "_%s", fr)
  25. #define modhead ".sect .text;.sect .rom;.sect .data;.sect .bss\n"
  26. #define BSS_INIT 0