X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fz80.h;h=020dbafb918cc4170f05aeb3d5bbcec176391c73;hb=275002aa4adfc706244119c7333ae5c319f3b7d0;hp=288d91a42ea404a53995cf028a02138890dcc0c0;hpb=f4fe6afd73d77df854640914cf1a2a38fdb1befd;p=fw%2Fsdcc diff --git a/src/z80/z80.h b/src/z80/z80.h index 288d91a4..020dbafb 100644 --- a/src/z80/z80.h +++ b/src/z80/z80.h @@ -5,17 +5,28 @@ #include "ralloc.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; + } +Z80_OPTS; extern Z80_OPTS z80_opts; #define IS_GB (z80_opts.sub == SUB_GBZ80) #define IS_Z80 (z80_opts.sub == SUB_Z80) +enum + { + ACCUSE_A = 1, + ACCUSE_SCRATCH, + ACCUSE_IY + };