Mercurial > repos > blastem
diff z80inst.h @ 235:d9bf8e61c33c
Get Z80 core working for simple programs
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 25 Apr 2013 21:01:11 -0700 |
parents | 4d4559b04c59 |
children | b970ea214ecb |
line wrap: on
line diff
--- a/z80inst.h Mon Apr 22 23:56:13 2013 -0700 +++ b/z80inst.h Thu Apr 25 21:01:11 2013 -0700 @@ -1,3 +1,6 @@ +#ifndef Z80INST_H_ +#define Z80INST_H_ + #include <stdint.h> enum { @@ -72,16 +75,16 @@ }; enum { - Z80_B=0, - Z80_C, + Z80_C=0, + Z80_B, + Z80_E, Z80_D, - Z80_E, + Z80_L, Z80_H, - Z80_L, + Z80_IXL, Z80_IXH, - Z80_IXL, + Z80_IYL, Z80_IYH, - Z80_IYL, Z80_I, Z80_R, Z80_A, @@ -130,4 +133,5 @@ uint8_t * z80_decode(uint8_t * istream, z80inst * decoded); int z80_disasm(z80inst * decoded, char * dst); +#endif //Z80INST_H_