* src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
[fw/sdcc] / src / hc08 / main.c
index f586fc639ca2e7aae927da66c3662fd481cba60b..13a23d684f1fe4fb88bb7dc223b126264b942de9 100644 (file)
@@ -62,7 +62,7 @@ _hc08_init (void)
 }
 
 static void
-_hc08_reset_regparm ()
+_hc08_reset_regparm (void)
 {
   regParmFlg = 0;
 }
@@ -139,7 +139,7 @@ _hc08_setDefaultOptions (void)
 {
   options.code_loc = 0x8000;
   options.data_loc = 0x80;
-  options.xdata_loc = 0x100;
+  options.xdata_loc = 0;       /* 0 means immediately following data */
   options.stack_loc = 0x7fff;
   options.out_fmt = 1;         /* use motorola S19 output */
 
@@ -423,6 +423,7 @@ PORT hc08_port =
     "CSEG (CODE)",
     "DSEG",
     NULL, /* "ISEG" */
+    NULL, /* "PSEG" */
     "XSEG",
     "BSEG",
     "RSEG",
@@ -464,12 +465,12 @@ PORT hc08_port =
     },
   },
   {
-    255/3,      /* maxCount */
-    3,          /* sizeofElement */
+    256,        /* maxCount */
+    2,          /* sizeofElement */
     {8,16,32},  /* sizeofMatchJump[] */
     {8,16,32},  /* sizeofRangeCompare[] */
     5,          /* sizeofSubtract */
-    11,         /* sizeofDispatch */
+    10,         /* sizeofDispatch */
   },
   "_",
   _hc08_init,