diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-09-16 22:54:59 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-09-16 22:54:59 +0000 |
commit | f76b8997620b8fb22f3b3c650c6fa9005b7d660b (patch) | |
tree | de3c279bff19a21affd395e086ad068853a264fe /src/z80.h | |
parent | 7145eef7df3d346e816117b78d5cbd6e023611e1 (diff) |
Added newer version of the Z80 core
Diffstat (limited to 'src/z80.h')
-rw-r--r-- | src/z80.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -27,6 +27,11 @@ #ifndef Z80_H #define Z80_H "$Id$" +/* Configuration +*/ +#include "z80_config.h" + + /* ---------------------------------------- TYPES */ @@ -157,11 +162,16 @@ typedef struct /* Initialises the processor. */ +#ifdef ENABLE_ARRAY_MEMORY +Z80 *Z80Init(Z80ReadPort read_port, + Z80WritePort write_port); +#else Z80 *Z80Init(Z80ReadMemory read_memory, Z80WriteMemory write_memory, Z80ReadPort read_port, Z80WritePort write_port, Z80ReadMemory read_for_disassem); +#endif /* Resets the processor. @@ -235,8 +245,8 @@ void Z80SetState(Z80 *cpu, const Z80State *state); void Z80SetLabels(Z80Label labels[]); -/* Simple disassembly of memory accessed through read_for_disassem. - addr is updated on exit. +/* Simple disassembly of memory accessed through read_for_disassem, or + Z80_MEMORY as appropriate. addr is updated on exit. */ const char *Z80Disassemble(Z80 *cpu, Z80Word *addr); |