summaryrefslogtreecommitdiff
path: root/z80.h
diff options
context:
space:
mode:
Diffstat (limited to 'z80.h')
-rw-r--r--z80.h9
1 files changed, 9 insertions, 0 deletions
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 */