* device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
[fw/sdcc] / src / izt / i186.c
index 8ee41fb2597ab5f925b8829c8d760f21fabd7e91..da67d9efc095d2349ceeb14eaeeeecf7d0f7db93 100644 (file)
@@ -136,7 +136,9 @@ PORT i186_port = {
     TARGET_ID_I186,
     "i186",
     "Intel 80186",      /* Target name */
+    NULL,
     {
+        glue,
         FALSE,          /* Emit glue around main */
         MODEL_SMALL,
         MODEL_SMALL
@@ -147,7 +149,8 @@ PORT i186_port = {
         NULL,
         NULL,
         0,
-        ".s"
+        ".s",
+       NULL                    /* no do_assemble function */
     },
     {
         _linkCmd,
@@ -162,6 +165,9 @@ PORT i186_port = {
         /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
         1, 2, 2, 4, 2, 2, 2, 1, 4, 4
     },
+    /* tags for generic pointers */
+    { 0x00, 0x40, 0x60, 0x80 },                /* far, near, xstack, code */
+
     {
         ".BSS",
         ".BSS",
@@ -191,12 +197,14 @@ PORT i186_port = {
     "_",
     _i186_init,
     _i186_parseOptions,
+    NULL,
     _i186_finaliseOptions,
     _i186_setDefaultOptions,
     izt_assignRegisters,
     _i186_getRegName ,
     _i186_keywords,
     _i186_genAssemblerPreamble,
+    NULL,                              /* no genAssemblerEnd */
     _i186_genIVT ,
     NULL, // _i186_genXINIT
     _i186_reset_regparm,
@@ -205,6 +213,7 @@ PORT i186_port = {
     NULL,
     NULL,
     FALSE,
+    TRUE,                              /* little endian */
     0,  /* leave lt */
     0,  /* leave gt */
     1,  /* transform <= to ! > */
@@ -214,5 +223,8 @@ PORT i186_port = {
     FALSE,                        /* No array initializer support. */
     0,                            /* no CSE cost estimation yet */
     NULL,                      /* no builtin functions */
+    GPOINTER,                  /* treat unqualified pointers as "generic" pointers */
+    1,                         /* reset labelKey to 1 */
+    1,                         /* globals & local static allowed */
     PORT_MAGIC
 };