Merged in multiple assemblers port.
[fw/sdcc] / src / z80 / main.c
index f99766f450ec416b2d35e58f41ea7eee9c95b1a1..17e5bc230ebbcacd56ec3433bdd6e119e23b7094 100644 (file)
@@ -16,14 +16,18 @@ Z80_OPTS z80_opts;
 
 static char *_keywords[] = { NULL };
 
+#include "mappings.i"
+
 static void _z80_init(void)
 {
     z80_opts.sub = SUB_Z80;
+    asm_addTree(&_asxxxx_z80);
 }
 
 static void _gbz80_init(void)
 {
     z80_opts.sub = SUB_GBZ80;
+    asm_addTree(&_rgbds_gb);
 }
 
 static int regParmFlg = 0; /* determine if we can register a parameter */
@@ -141,17 +145,17 @@ PORT z80_port = {
        1, 1, 2, 4, 2, 2, 2, 1, 4, 4
     },
     {
-       "_XSEG",
-       "_STACK",
-       "_CODE",
-       "_DATA",
-       "_ISEG",
-       "_XSEG",
-       "_BSEG",
-       "_RSEG",
-       "_GSINIT",
-       "_OVERLAY",
-       "_GSFINAL",
+       "XSEG",
+       "STACK",
+       "CODE",
+       "DATA",
+       "ISEG",
+       "XSEG",
+       "BSEG",
+       "RSEG",
+       "GSINIT",
+       "OVERLAY",
+       "GSFINAL",
        NULL,
        NULL,
        1
@@ -199,17 +203,17 @@ PORT gbz80_port = {
        1, 1, 2, 4, 2, 2, 2, 1, 4, 4
     },
     {
-       "_XSEG",
-       "_STACK",
-       "_CODE",
-       "_DATA",
-       "_ISEG",
-       "_XSEG",
-       "_BSEG",
-       "_RSEG",
-       "_GSINIT",
-       "_OVERLAY",
-       "_GSFINAL",
+       "XSEG",
+       "STACK",
+       "CODE",
+       "DATA",
+       "ISEG",
+       "XSEG",
+       "BSEG",
+       "RSEG",
+       "GSINIT",
+       "OVERLAY",
+       "GSFINAL",
        NULL,
        NULL,
        1