X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fgen.h;h=2512bd65e2c517c8b85a867db349493e97440b5b;hb=b7df8c3faf043c51a0edff35f80713741f19ee3d;hp=8751531ce8aa89299d916eae04de8a0891bcc9c6;hpb=d7ea4ed7cf4844be678bacdf2ed38e4073335013;p=fw%2Fsdcc diff --git a/src/z80/gen.h b/src/z80/gen.h index 8751531c..2512bd65 100644 --- a/src/z80/gen.h +++ b/src/z80/gen.h @@ -22,8 +22,8 @@ what you give them. Help stamp out software-hoarding! -------------------------------------------------------------------------*/ -#ifndef SDCCGEN51_H -#define SDCCGEN51_H +#ifndef Z80GEN_H +#define Z80GEN_H typedef enum { @@ -55,7 +55,11 @@ 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, + /* Read as 0, discard writes */ + AOP_DUMMY } AOP_TYPE; @@ -67,9 +71,11 @@ 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 */ + unsigned code:1; /* is in Code space */ + unsigned paged:1; /* in paged memory */ + unsigned freed:1; /* already freed */ + unsigned bcInUse:1; + unsigned deInUse:1; union { value *aop_lit; /* if literal */ @@ -79,12 +85,14 @@ 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; } asmop; void genZ80Code (iCode *); +void z80_emitDebuggerSymbol (char *); #endif