X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fgen.h;h=20b5787716eaccf371854c5d95ccc74f242e4ed8;hb=904538934253171b501983a5377efad7ca65d848;hp=8751531ce8aa89299d916eae04de8a0891bcc9c6;hpb=9a382ea007dd372b41f444337bedfacba4c782aa;p=fw%2Fsdcc diff --git a/src/z80/gen.h b/src/z80/gen.h index 8751531c..20b57877 100644 --- a/src/z80/gen.h +++ b/src/z80/gen.h @@ -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; }