From f295f65db435ab7cb384e44e1dd74dc6d7a34853 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 20 Aug 2006 22:31:42 +0000 Subject: Initial compilable version --- z80.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'z80.h') diff --git a/z80.h b/z80.h index 814b32d..745ee48 100644 --- a/z80.h +++ b/z80.h @@ -33,6 +33,10 @@ /* ---------------------------------------- TYPES */ +/* Remove this to disable the disassembler (saving some memory) +*/ +#define Z80_DISASSEMBLER_ENABLED + /* The processor */ struct Z80; @@ -213,6 +217,11 @@ Z80Val Z80Cycles(Z80 *cpu); void Z80GetState(Z80 *cpu, Z80State *state); void Z80SetState(Z80 *cpu, const Z80State *state); + +/* Simple disassembly. addr is updated on exit. +*/ +const char *Z80Disassemble(Z80 *cpu, Z80Word *addr); + #endif /* END OF FILE */ -- cgit v1.2.3