em_private.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* $Id$ */
  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. /* private inclusion file */
  7. #include <em_arith.h>
  8. #include <em_label.h>
  9. /* include the EM description files */
  10. #include <em_spec.h>
  11. #include <em_pseu.h>
  12. #include <em_mnem.h>
  13. #include <em_reg.h>
  14. #include <ansi.h>
  15. #include "em_codeEK.h"
  16. #ifdef READABLE_EM
  17. /* macros used in the definitions of the interface functions C_* */
  18. #define OP(x) C_pt_op(x)
  19. #define CST(x) C_pt_cst(x)
  20. #define DCST(x) C_pt_cst(x)
  21. #define SCON(x,y) C_pt_scon((x), (y))
  22. #define PS(x) C_pt_ps(x)
  23. #define DLB(x) C_pt_dlb(x)
  24. #define DFDLB(x) C_pt_dlb(x)
  25. #define ILB(x) C_pt_ilb(x)
  26. #define DFILB(x) C_pt_dfilb(x)
  27. #define NOFF(x,y) C_pt_noff((x), (y))
  28. #define DOFF(x,y) C_pt_doff((x), (y))
  29. #define PNAM(x) C_pt_pnam(x)
  30. #define DNAM(x) C_pt_dnam(x)
  31. #define DFDNAM(x) C_pt_dnam(x)
  32. #define CEND()
  33. #define CCEND() C_pt_ccend()
  34. #define WCON(x,y,z) C_pt_wcon((x), (y), (z))
  35. #define COMMA() C_pt_comma()
  36. #define NL() C_pt_nl()
  37. #define CILB(x) C_pt_ilb(x)
  38. #else
  39. /* macros used in the definitions of the interface functions C_* */
  40. #define OP(x) C_pt_op(x)
  41. #define CST(x) C_pt_cst(x)
  42. #define DCST(x) C_pt_cst(x)
  43. #define SCON(x,y) C_pt_scon((x), (y))
  44. #define PS(x) C_pt_ps(x)
  45. #define DLB(x) C_pt_dlb(x)
  46. #define DFDLB(x) C_pt_dlb(x)
  47. #define ILB(x) C_pt_ilb(x)
  48. #define DFILB(x) C_pt_ilb(x)
  49. #define NOFF(x,y) C_pt_noff((x), (y))
  50. #define DOFF(x,y) C_pt_doff((x), (y))
  51. #define PNAM(x) C_pt_pnam(x)
  52. #define DNAM(x) C_pt_dnam(x)
  53. #define DFDNAM(x) C_pt_dnam(x)
  54. #define CEND() C_pt_cend()
  55. #define CCEND() C_pt_cend()
  56. #define WCON(x,y,z) C_pt_wcon((x), (y), (z))
  57. #define COMMA()
  58. #define NL()
  59. #define CILB(x) CST((arith) x)
  60. #define C_pt_cend() C_putbyte(sp_cend)
  61. #define C_pt_op(x) C_putbyte(x)
  62. #define C_pt_ps(x) C_putbyte(x)
  63. #endif /* READABLE_EM */
  64. _PROTOTYPE(void C_pt_dnam, (char *));
  65. _PROTOTYPE(void C_pt_ilb, (label));
  66. _PROTOTYPE(void C_pt_cst, (arith));
  67. _PROTOTYPE(void C_pt_scon, (char *, arith));
  68. _PROTOTYPE(void C_pt_dlb, (label));
  69. _PROTOTYPE(void C_pt_doff, (label, arith));
  70. _PROTOTYPE(void C_pt_noff, (char *, arith));
  71. _PROTOTYPE(void C_pt_pnam, (char *));
  72. _PROTOTYPE(void C_pt_dfilb, (label));
  73. _PROTOTYPE(void C_pt_wcon, (int, char *, arith));
  74. #ifdef READABLE_EM
  75. _PROTOTYPE(void C_pt_ps, (int));
  76. _PROTOTYPE(void C_pt_op, (int));
  77. _PROTOTYPE(void C_pt_nl, (void));
  78. _PROTOTYPE(void C_pt_comma, (void));
  79. _PROTOTYPE(void C_pt_ccend, (void));
  80. #endif /* READABLE_EM */