summaryrefslogtreecommitdiff
path: root/z80inst.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-04-25 21:01:11 -0700
committerMike Pavone <pavone@retrodev.com>2013-04-25 21:01:11 -0700
commit46db74a053d7fca9dee69e8737a435e65b538577 (patch)
treefa645a9997fac9f040b6664ffbaf9b0733fdc71e /z80inst.h
parent68be5ac1a6452de7333d77b91d5a9634aac05b5b (diff)
Get Z80 core working for simple programs
Diffstat (limited to 'z80inst.h')
-rw-r--r--z80inst.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/z80inst.h b/z80inst.h
index fc7b2c1..33b2d3f 100644
--- a/z80inst.h
+++ b/z80inst.h
@@ -1,3 +1,6 @@
+#ifndef Z80INST_H_
+#define Z80INST_H_
+
#include <stdint.h>
enum {
@@ -72,16 +75,16 @@ enum {
};
enum {
- Z80_B=0,
- Z80_C,
- Z80_D,
+ Z80_C=0,
+ Z80_B,
Z80_E,
- Z80_H,
+ Z80_D,
Z80_L,
- Z80_IXH,
+ Z80_H,
Z80_IXL,
- Z80_IYH,
+ Z80_IXH,
Z80_IYL,
+ Z80_IYH,
Z80_I,
Z80_R,
Z80_A,
@@ -130,4 +133,5 @@ typedef struct {
uint8_t * z80_decode(uint8_t * istream, z80inst * decoded);
int z80_disasm(z80inst * decoded, char * dst);
+#endif //Z80INST_H_