projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved link/ to as/link/
[fw/sdcc]
/
src
/
z80
/
z80.h
diff --git
a/src/z80/z80.h
b/src/z80/z80.h
index 1bd544049ec84accfb0061ced7bef09b96bed0d1..dd6cda26d6c94e93cbbb5a0fa690096e76631dd4 100644
(file)
--- a/
src/z80/z80.h
+++ b/
src/z80/z80.h
@@
-3,23
+3,33
@@
*/
#include "common.h"
#include "ralloc.h"
*/
#include "common.h"
#include "ralloc.h"
+#include "gen.h"
#include "support.h"
#include "support.h"
-typedef enum {
+typedef enum
+ {
SUB_Z80,
SUB_GBZ80
SUB_Z80,
SUB_GBZ80
-} Z80_SUB_PORT;
+ }
+Z80_SUB_PORT;
-typedef struct {
+typedef struct
+ {
Z80_SUB_PORT sub;
Z80_SUB_PORT sub;
-} Z80_OPTS;
+ int calleeSavesBC;
+ int port_mode;
+ int port_back;
+ }
+Z80_OPTS;
extern Z80_OPTS z80_opts;
#define IS_GB (z80_opts.sub == SUB_GBZ80)
#define IS_Z80 (z80_opts.sub == SUB_Z80)
extern Z80_OPTS z80_opts;
#define IS_GB (z80_opts.sub == SUB_GBZ80)
#define IS_Z80 (z80_opts.sub == SUB_Z80)
-enum {
+enum
+ {
ACCUSE_A = 1,
ACCUSE_A = 1,
- ACCUSE_HL
-};
+ ACCUSE_SCRATCH,
+ ACCUSE_IY
+ };