projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
043025f9f3dea39ea99104051e194e0ae3488ac6
[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
int calleeSavesBC;
19
int port_mode;
20
int port_back;
21
}
22
Z80_OPTS;
23
24
extern Z80_OPTS z80_opts;
25
26
#define IS_GB (z80_opts.sub == SUB_GBZ80)
27
#define IS_Z80 (z80_opts.sub == SUB_Z80)
28
29
enum
30
{
31
ACCUSE_A = 1,
32
ACCUSE_SCRATCH,
33
ACCUSE_IY
34
};