From 46db74a053d7fca9dee69e8737a435e65b538577 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Thu, 25 Apr 2013 21:01:11 -0700 Subject: Get Z80 core working for simple programs --- z80inst.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'z80inst.h') 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 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_ -- cgit v1.2.3