* src/port.h (struct PORT): added field gp_tags, to hold the tag
[fw/sdcc] / src / izt / i186.c
index 60048a43888f726333c6b12edadca16e656d51a4..da67d9efc095d2349ceeb14eaeeeecf7d0f7db93 100644 (file)
@@ -138,6 +138,7 @@ PORT i186_port = {
     "Intel 80186",      /* Target name */
     NULL,
     {
+        glue,
         FALSE,          /* Emit glue around main */
         MODEL_SMALL,
         MODEL_SMALL
@@ -164,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",
@@ -193,6 +197,7 @@ PORT i186_port = {
     "_",
     _i186_init,
     _i186_parseOptions,
+    NULL,
     _i186_finaliseOptions,
     _i186_setDefaultOptions,
     izt_assignRegisters,
@@ -208,6 +213,7 @@ PORT i186_port = {
     NULL,
     NULL,
     FALSE,
+    TRUE,                              /* little endian */
     0,  /* leave lt */
     0,  /* leave gt */
     1,  /* transform <= to ! > */