mach.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* $Header$ */
  2. /* The next define switches between codegeneration for an ACK assembler
  3. * or for the standard UNIX V7 assembler.
  4. * If on code is generated for the ACK assembler.
  5. */
  6. /* #define ACK_ASS /* code for ACK assembler */
  7. #ifdef ACK_ASS
  8. #define COMMENTCHAR '!'
  9. #define ex_ap(y) fprintf(codefile,".extern %s\n",y)
  10. #else
  11. #define COMMENTCHAR '/'
  12. #define ex_ap(y) fprintf(codefile,".globl %s\n",y)
  13. #endif
  14. #define in_ap(y) /* nothing */
  15. #define newplb(x) doplb(x)
  16. #define newilb(x) fprintf(codefile,"%s:\n",x)
  17. #define newdlb(x) fprintf(codefile,"%s:\n",x)
  18. #ifdef ACK_ASS
  19. #define newlbss(l,x) fprintf(codefile,"%s:.space 0%o\n",l,x);
  20. #else
  21. #define newlbss(l,x) fprintf(codefile,"%s:.=.+0%o\n",l,x);
  22. #endif
  23. #define cst_fmt "$0%o"
  24. #define off_fmt "0%o"
  25. #define ilb_fmt "I%03x%x"
  26. #define dlb_fmt "_%d"
  27. #define hol_fmt "hol%d"
  28. #define hol_off "0%o+hol%d"
  29. #ifdef ACK_ASS
  30. #define con_cst(x) fprintf(codefile,".short 0%o\n",x)
  31. #define con_ilb(x) fprintf(codefile,".short %s\n",x)
  32. #define con_dlb(x) fprintf(codefile,".short %s\n",x)
  33. #else
  34. #define con_cst(x) fprintf(codefile,"0%o\n",x)
  35. #define con_ilb(x) fprintf(codefile,"%s\n",x)
  36. #define con_dlb(x) fprintf(codefile,"%s\n",x)
  37. #endif
  38. #define id_first '_'
  39. #define BSS_INIT 0