X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fport.h;h=a52bed1b806cae20954ab7262787db0397706b7f;hb=3a3ad5f21d40c9e0e8fbd4e7dcf428bff9cf4c42;hp=e07d7a95ee00eda51d910c82275240e18723fc39;hpb=d7b30120ae115e8929d57e25038ca76dde13974e;p=fw%2Fsdcc diff --git a/src/port.h b/src/port.h index e07d7a95..a52bed1b 100644 --- a/src/port.h +++ b/src/port.h @@ -8,6 +8,8 @@ #include "SDCCicode.h" #include "SDCCargs.h" #include "SDCCpeeph.h" +#include "dbuf.h" +#include "mcs51/peep.h" #define TARGET_ID_MCS51 1 #define TARGET_ID_GBZ80 2 @@ -25,14 +27,15 @@ */ #define TARGET_IS_MCS51 (port->id==TARGET_ID_MCS51) #define TARGET_IS_GBZ80 (port->id==TARGET_ID_GBZ80) -#define TARGET_IS_Z80 (port->id==TARGET_ID_Z80) -#define TARGET_IS_AVR (port->id==TARGET_ID_AVR) +#define TARGET_IS_Z80 (port->id==TARGET_ID_Z80) +#define TARGET_Z80_LIKE ((port->id==TARGET_ID_Z80) || (port->id==TARGET_ID_GBZ80)) +#define TARGET_IS_AVR (port->id==TARGET_ID_AVR) #define TARGET_IS_DS390 (port->id==TARGET_ID_DS390) #define TARGET_IS_DS400 (port->id==TARGET_ID_DS400) #define TARGET_IS_PIC (port->id==TARGET_ID_PIC) #define TARGET_IS_PIC16 (port->id==TARGET_ID_PIC16) -#define TARGET_IS_XA51 (port->id==TARGET_ID_XA51) -#define TARGET_IS_HC08 (port->id==TARGET_ID_HC08) +#define TARGET_IS_XA51 (port->id==TARGET_ID_XA51) +#define TARGET_IS_HC08 (port->id==TARGET_ID_HC08) #define MAX_BUILTIN_ARGS 16 /* definition of builtin functions */ @@ -131,6 +134,7 @@ typedef struct int (*getSize)(lineNode *line); bitVect * (*getRegsRead)(lineNode *line); bitVect * (*getRegsWritten)(lineNode *line); + bool (*deadMove) (const char *reg, lineNode *currPl, lineNode *head); } peep; @@ -293,7 +297,7 @@ typedef struct * it returns zero, default (8051) IVT generation code * will be used. */ - int (*genIVT) (FILE * of, symbol ** intTable, int intCount); + int (*genIVT) (struct dbuf_s *oBuf, symbol ** intTable, int intCount); void (*genXINIT) (FILE * of);