-#define UPSEG_SIZE 0x10010L /* size of 6502 code buffer, 64K+16bytes */
-
-
-/*
- * Imports
- */
-extern TOKEN *tok; /* -> current token */
-extern int debug; /* >0, in debug mode (-x) */
-extern int m6502; /* 1, in 6502 mode */
-extern TOKEN exprbuf[]; /* "universal" postfix expression buffer */
-extern LONG lsloc; /* `sloc' at start of line */
-extern unsigned orgactive; // RISC/6502 org directive active
-extern unsigned orgaddr; // Org'd address
-extern char * string[];
-
-extern char extra_stuff[]; /* needed-eol error message */
-extern char *range_error; /* value-out-of-range error message */
-
-
-/*
- * Exports
- */
-char in_6502mode[] = "directive illegal in .6502 section";
-static uint16_t orgmap[1024][2]; /* mark all 6502 org changes */
-uint16_t *currentorg = (uint16_t *)orgmap; /* current org range */
-
-/*
- * 6502 addressing modes;
- * do not change these values.
- *
- */
+#define UPSEG_SIZE 0x10010L // size of 6502 code buffer, 64K+16bytes
+
+//
+// Exported vars
+//
+const char in_6502mode[] = "directive illegal in .6502 section";
+static uint16_t orgmap[1024][2]; // Mark all 6502 org changes
+uint16_t * currentorg = &orgmap[0][0]; // Current org range
+
+//
+// 6502 addressing modes;
+// DO NOT CHANGE THESE VALUES.
+//