* src/hc08/gen.c (hc08_emitDebuggerSymbol),
[fw/sdcc] / src / z80 / z80.h
1 /** @file z80/z80.h
2     Common definitions between the z80 and gbz80 parts.
3 */
4 #include "common.h"
5 #include "ralloc.h"
6 #include "gen.h"
7 #include "support.h"
8
9 typedef enum
10   {
11     SUB_Z80,
12     SUB_GBZ80
13   }
14 Z80_SUB_PORT;
15
16 typedef struct
17   {
18     Z80_SUB_PORT sub;
19     int calleeSavesBC;
20     int port_mode;
21     int port_back;
22   }
23 Z80_OPTS;
24
25 extern Z80_OPTS z80_opts;
26
27 #define IS_GB  (z80_opts.sub == SUB_GBZ80)
28 #define IS_Z80 (z80_opts.sub == SUB_Z80)
29
30 enum
31   {
32     ACCUSE_A = 1,
33     ACCUSE_SCRATCH,
34     ACCUSE_IY
35   };