summaryrefslogtreecommitdiff
path: root/z80_private.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-08-21 00:01:01 +0000
committerIan C <ianc@noddybox.co.uk>2006-08-21 00:01:01 +0000
commit65c818acf64915aa6b1de12774abab855cb6437b (patch)
treec4d2ab06375f3591fe84958c0789959c86d388fa /z80_private.h
parentf295f65db435ab7cb384e44e1dd74dc6d7a34853 (diff)
Added disassembler
Diffstat (limited to 'z80_private.h')
-rw-r--r--z80_private.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/z80_private.h b/z80_private.h
index 32ce91f..ae0ec8c 100644
--- a/z80_private.h
+++ b/z80_private.h
@@ -227,6 +227,29 @@ void Z80_Decode(Z80 *cpu, Z80Byte opcode);
void Z80_InitialiseInternals(void);
-#endif
+/* ---------------------------------------- DISASSEMBLY
+*/
+#ifdef ENABLE_DISASSEM
+typedef void (*DIS_OP_CALLBACK)(Z80 *z80, Z80Byte op, Z80Word *pc);
+
+extern DIS_OP_CALLBACK dis_CB_opcode[];
+extern DIS_OP_CALLBACK dis_DD_opcode[];
+extern DIS_OP_CALLBACK dis_DD_CB_opcode[];
+extern DIS_OP_CALLBACK dis_ED_opcode[];
+extern DIS_OP_CALLBACK dis_FD_opcode[];
+extern DIS_OP_CALLBACK dis_FD_CB_opcode[];
+extern DIS_OP_CALLBACK dis_opcode_z80[];
+
+const char *Z80_Dis_Printf(const char *format, ...);
+
+Z80Byte Z80_Dis_FetchByte(Z80 *cpu, Z80Word *pc);
+Z80Word Z80_Dis_FetchWord(Z80 *cpu, Z80Word *pc);
+
+void Z80_Dis_Set(const char *op, const char *arg);
+const char *Z80_Dis_GetOp(void);
+const char *Z80_Dis_GetArg(void);
+#endif /* ENABLE_DISASSEM */
+
+#endif /* Z80_PRIVATE_H */
/* END OF FILE */