Added design, updated url
[fw/sdcc] / src / z80 / gbz80.c
index dea697a354f8595261583fbf501df4e3b18f4453..33a9bc7ff6f35494b9f1bef2a06cb6deff9f5f85 100644 (file)
@@ -9,7 +9,8 @@
 
 static char _defaultRules[] =
 {
-    ""
+#include "peeph.rul"
+#include "peeph-gbz80.rul"
 };
 
 static char *_gbz80_keywords[] = { NULL };
@@ -26,6 +27,8 @@ static void _gbz80_init(void)
 
 static void _gbz80_finaliseOptions(void)
 {
+    port->mem.default_local_map = data;
+    port->mem.default_globl_map = data;
 }
 
 static void _gbz80_setDefaultOptions(void)
@@ -62,17 +65,20 @@ static const char *_gbz80_getRegName(struct regs *reg)
     MUST be terminated with a NULL.
 */
 static const char *_linkCmd[] = {
-    "link-gb", "-nf", "$1", NULL
+    "link-gbz80", "-nf", "$1", NULL
 };
 
 static const char *_asmCmd[] = {
-    "as-gb", "-plosgff", "$1.o", "$1.asm", NULL
+    "as-gbz80", "-plosgff", "$1.o", "$1.asm", NULL
 };
 
 /* Globals */
 PORT gbz80_port = {
     "gbz80",
     "Gameboy Z80-like",                /* Target name */
+    {
+       FALSE,
+    },
     {  
        _asmCmd,
        "-plosgff",             /* Options with debug */
@@ -98,7 +104,10 @@ PORT gbz80_port = {
        "_BSEG",
        "_RSEG",
        "_GSINIT",
-       "_OVERLAY"
+       "_OVERLAY",
+       "_GSFINAL",
+       NULL,
+       NULL
     },
     { 
        -1, 0, 0, 4, 0