projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f34981ec8e2eb83433b351bd2d284cb061b4bbc2
[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 "support.h"
7
8
typedef enum
9
{
10
SUB_Z80,
11
SUB_GBZ80
12
}
13
Z80_SUB_PORT;
14
15
typedef struct
16
{
17
Z80_SUB_PORT sub;
18
}
19
Z80_OPTS;
20
21
extern Z80_OPTS z80_opts;
22
23
#define IS_GB (z80_opts.sub == SUB_GBZ80)
24
#define IS_Z80 (z80_opts.sub == SUB_Z80)
25
26
enum
27
{
28
ACCUSE_A = 1,
29
ACCUSE_SCRATCH,
30
ACCUSE_IY
31
};