X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fz80.h;h=f34981ec8e2eb83433b351bd2d284cb061b4bbc2;hb=57781964418caea528f9018cace1acb4a789d71c;hp=d51ec9161ada7d081bc4206db05601aa0affc40d;hpb=c36942cfa3dd71c993330f0ef36e99e0612e13c7;p=fw%2Fsdcc diff --git a/src/z80/z80.h b/src/z80/z80.h index d51ec916..f34981ec 100644 --- a/src/z80/z80.h +++ b/src/z80/z80.h @@ -5,21 +5,27 @@ #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; + } +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, - ACCUSE_HL -}; +enum + { + ACCUSE_A = 1, + ACCUSE_SCRATCH, + ACCUSE_IY + };