Added em_private.h
authorceriel <none@none>
Mon, 16 Oct 1989 14:23:25 +0000 (14:23 +0000)
committerceriel <none@none>
Mon, 16 Oct 1989 14:23:25 +0000 (14:23 +0000)
modules/src/em_code/.distr
modules/src/em_code/em_private.h [new file with mode: 0644]

index 0ee811f..bccd171 100644 (file)
@@ -26,6 +26,7 @@ dlb.c
 dnam.c
 em.c
 em.nogen
+em_private.h
 end.c
 endarg.c
 exc.c
diff --git a/modules/src/em_code/em_private.h b/modules/src/em_code/em_private.h
new file mode 100644 (file)
index 0000000..7fc357e
--- /dev/null
@@ -0,0 +1,66 @@
+/* $Header$ */
+/*
+ * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
+ * See the copyright notice in the ACK home directory, in the file "Copyright".
+ */
+/* private inclusion file */
+
+#include <em_arith.h>
+#include <em_label.h>
+
+/* include the EM description files */
+#include       <em_spec.h>
+#include       <em_pseu.h>
+#include       <em_mnem.h>
+#include       <em_reg.h>
+
+#ifdef READABLE_EM
+/* macros used in the definitions of the interface functions C_* */
+#define        OP(x)           C_pt_op(x)
+#define        CST(x)          C_pt_cst(x)
+#define        DCST(x)         C_pt_cst(x)
+#define        SCON(x,y)       C_pt_scon((x), (y))
+#define        PS(x)           C_pt_ps(x)
+#define        DLB(x)          C_pt_dlb(x)
+#define DFDLB(x)       C_pt_dlb(x)
+#define        ILB(x)          C_pt_ilb(x)
+#define        DFILB(x)        C_pt_dfilb(x)
+#define        NOFF(x,y)       C_pt_noff((x), (y))
+#define        DOFF(x,y)       C_pt_doff((x), (y))
+#define        PNAM(x)         C_pt_pnam(x)
+#define        DNAM(x)         C_pt_dnam(x)
+#define        DFDNAM(x)       C_pt_dnam(x)
+#define        CEND()
+#define CCEND()                C_pt_ccend()
+#define        WCON(x,y,z)     C_pt_wcon((x), (y), (z))
+#define COMMA()                C_pt_comma()
+#define NL()           C_pt_nl()
+#define CILB(x)                C_pt_ilb(x)
+
+#else
+/* macros used in the definitions of the interface functions C_* */
+#define        OP(x)           C_pt_op(x)
+#define        CST(x)          C_pt_cst(x)
+#define        DCST(x)         C_pt_cst(x)
+#define        SCON(x,y)       C_pt_scon((x), (y))
+#define        PS(x)           C_pt_ps(x)
+#define        DLB(x)          C_pt_dlb(x)
+#define DFDLB(x)       C_pt_dlb(x)
+#define        ILB(x)          C_pt_ilb(x)
+#define        DFILB(x)        C_pt_ilb(x)
+#define        NOFF(x,y)       C_pt_noff((x), (y))
+#define        DOFF(x,y)       C_pt_doff((x), (y))
+#define        PNAM(x)         C_pt_pnam(x)
+#define        DNAM(x)         C_pt_dnam(x)
+#define        DFDNAM(x)       C_pt_dnam(x)
+#define        CEND()          C_pt_cend()
+#define CCEND()                C_pt_cend()
+#define        WCON(x,y,z)     C_pt_wcon((x), (y), (z))
+#define COMMA()
+#define NL()
+#define CILB(x)                CST((arith) x)
+
+#define        C_pt_cend()     C_putbyte(sp_cend)
+#define        C_pt_op(x)      C_putbyte(x)
+#define        C_pt_ps(x)      C_putbyte(x)
+#endif /* READABLE_EM */