X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fz80.h;h=dd6cda26d6c94e93cbbb5a0fa690096e76631dd4;hb=b39b9a851fa0122a6fb71bb1e40badc28f6192f0;hp=45dbf094495db49a2c82be052fc6c5e747d6db0e;hpb=e8b47a54f14e5a3bfc176b5fbd57f42d25373cf6;p=fw%2Fsdcc diff --git a/src/z80/z80.h b/src/z80/z80.h index 45dbf094..dd6cda26 100644 --- a/src/z80/z80.h +++ b/src/z80/z80.h @@ -3,23 +3,33 @@ */ #include "common.h" #include "ralloc.h" +#include "gen.h" +#include "support.h" -typedef enum { +typedef enum + { SUB_Z80, SUB_GBZ80 -} Z80_SUB_PORT; + } +Z80_SUB_PORT; -typedef struct { +typedef struct + { Z80_SUB_PORT sub; -} Z80_OPTS; + int calleeSavesBC; + int port_mode; + int port_back; + } +Z80_OPTS; extern Z80_OPTS z80_opts; -#define wassertl(a,s) ((a) ? 0 : \ - (werror (E_INTERNAL_ERROR,__FILE__,__LINE__, s), 0)) - -#define wassert(a) wassertl(a,"code generator internal error") - #define IS_GB (z80_opts.sub == SUB_GBZ80) #define IS_Z80 (z80_opts.sub == SUB_Z80) +enum + { + ACCUSE_A = 1, + ACCUSE_SCRATCH, + ACCUSE_IY + };