summaryrefslogtreecommitdiff
path: root/bcc/6809/const.h
diff options
context:
space:
mode:
Diffstat (limited to 'bcc/6809/const.h')
-rw-r--r--bcc/6809/const.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/bcc/6809/const.h b/bcc/6809/const.h
new file mode 100644
index 0000000..559680c
--- /dev/null
+++ b/bcc/6809/const.h
@@ -0,0 +1,52 @@
+/* const.h - constants for bcc */
+
+/* Copyright (C) 1992 Bruce Evans */
+
+/* switches for code generation */
+
+#define DEBUG /* generate compiler-debugging code */
+/*#define I8088*/ /* target processor is Intel 8088 thru 80386 */
+#define MC6809 /* target processor is Motorola 6809 */
+#define SELFTYPECHECK /* check calculated type = runtime type */
+
+#ifdef I8088
+# define DYNAMIC_LONG_ORDER 1 /* long word order spec. at compile time */
+# define FRAMEPOINTER /* index locals off frame ptr, not stack ptr */
+# define HOLDSTRINGS /* hold strings for dumping at end
+ * since assembler has only 1 data seg */
+#endif
+
+#ifdef MC6809
+# define DYNAMIC_LONG_ORDER 0 /* have to define it so it works in #if's */
+# define OP1 /* logical operators only use 1 byte */
+# define POSINDEPENDENT /* position indep code can (also) be gen */
+#endif
+
+/* switches for source and target operating system dependencies */
+
+/*#define SOS_EDOS*/ /* source O/S is EDOS */
+/*#define SOS_MSDOS*/ /* source O/S is MSDOS */
+#define TOS_EDOS /* target O/S is EDOS */
+
+/* switches for source machine dependencies */
+
+#ifndef SOS_EDOS
+# define S_ALIGNMENT (sizeof(int)) /* source memory alignment, power of 2 */
+#endif
+
+#ifndef SOS_MSDOS /* need portable alignment for large model */
+# define UNPORTABLE_ALIGNMENT
+#endif
+
+/* local style */
+
+#define FALSE 0
+#ifndef NULL
+#define NULL 0
+#endif
+#define TRUE 1
+
+#define EXTERN extern
+#define FORWARD static
+#define PRIVATE static
+#define PUBLIC