* src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80...
[fw/sdcc] / src / z80 / gen.h
index 8751531ce8aa89299d916eae04de8a0891bcc9c6..20b5787716eaccf371854c5d95ccc74f242e4ed8 100644 (file)
@@ -55,7 +55,9 @@ typedef enum
     /* Simple literal. */
     AOP_SIMPLELIT,
     /* Is in the extended stack pointer (IY on the Z80) */
-    AOP_EXSTK
+    AOP_EXSTK,
+    /* Is referenced by a pointer in a register pair. */
+    AOP_PAIRPTR
   }
 AOP_TYPE;
 
@@ -67,9 +69,9 @@ typedef struct asmop
     AOP_TYPE type;
     short coff;                 /* current offset */
     short size;                 /* total size */
-    unsigned code:1;            /* is in Code space */
-    unsigned paged:1;           /* in paged memory  */
-    unsigned freed:1;           /* already freed    */
+    bool code;                  /* is in Code space */
+    bool paged;                 /* in paged memory  */
+    bool freed;                 /* already freed    */
     union
       {
         value *aop_lit;         /* if literal */
@@ -79,6 +81,7 @@ typedef struct asmop
         int aop_stk;            /* stack offset when AOP_STK */
         const char *aop_str[4]; /* just a string array containing the location */
         unsigned long aop_simplelit; /* Just the value. */
+        int aop_pairId;                /* The pair ID */
       }
     aopu;
   }