Blah. Pre 2.92.
[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
7 typedef enum {
8     SUB_Z80,
9     SUB_GBZ80
10 } Z80_SUB_PORT;
11
12 typedef struct {
13     Z80_SUB_PORT sub;
14 } Z80_OPTS;
15
16 extern Z80_OPTS z80_opts;
17
18 #define wassertl(a,s)   (a) ? 0 : \
19                 werror (E_INTERNAL_ERROR,__FILE__,__LINE__, s)
20
21 #define wassert(a)    wassertl(a,"code generator internal error")
22
23 #define IS_GB  (z80_opts.sub == SUB_GBZ80)
24