diff options
author | 2008-12-08 10:44:00 +0000 | |
---|---|---|
committer | 2008-12-08 10:44:00 +0000 | |
commit | c33c60485bb9d7bee1c212a14dd55902d0fa9bc3 (patch) | |
tree | dd3a69f8802ab2cfcaa5b08f3cf4a4bce10609dc /src/emu/cpu/z8000 | |
parent | 5b64c0067465ce54e35831d0303f72cf673d6723 (diff) |
Pointer-ified the V810 core.
Added OG's z8000 fix.
Diffstat (limited to 'src/emu/cpu/z8000')
-rw-r--r-- | src/emu/cpu/z8000/8000dasm.c | 4 | ||||
-rw-r--r-- | src/emu/cpu/z8000/z8000.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/z8000/z8000cpu.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/z8000/8000dasm.c b/src/emu/cpu/z8000/8000dasm.c index 81f98f22104..af090569a3f 100644 --- a/src/emu/cpu/z8000/8000dasm.c +++ b/src/emu/cpu/z8000/8000dasm.c @@ -45,10 +45,8 @@ *****************************************************************************/ #include "z8000.h" -#include "cpuintrf.h" - -typedef void z8000_state; #include "z8000cpu.h" +#include "cpuintrf.h" static int n[12]; /* opcode nibbles */ static int b[6]; /* opcode bytes */ diff --git a/src/emu/cpu/z8000/z8000.c b/src/emu/cpu/z8000/z8000.c index cdb56b28379..da8eb1cba4f 100644 --- a/src/emu/cpu/z8000/z8000.c +++ b/src/emu/cpu/z8000/z8000.c @@ -61,7 +61,7 @@ union _z8000_reg_file UINT64 Q[4]; /* RQ0,RQ4,..RQ12 */ }; -typedef struct _z8000_state z8000_state; +/* In z8000cpu.h: typedef struct _z8000_state z8000_state; */ struct _z8000_state { UINT16 op[4]; /* opcodes/data of current instruction */ diff --git a/src/emu/cpu/z8000/z8000cpu.h b/src/emu/cpu/z8000/z8000cpu.h index 394c491d012..fd63e4d8794 100644 --- a/src/emu/cpu/z8000/z8000cpu.h +++ b/src/emu/cpu/z8000/z8000cpu.h @@ -193,6 +193,8 @@ #define GET_DSP16 UINT16 dsp16 = cpustate->pc + (INT16)cpustate->op[1] #define GET_ADDR(o) UINT16 addr = (UINT16)cpustate->op[o] +typedef struct _z8000_state z8000_state; + /* structure for the opcode definition table */ typedef struct { int beg, end, step; |