summaryrefslogtreecommitdiff
path: root/z80.h
diff options
context:
space:
mode:
Diffstat (limited to 'z80.h')
-rw-r--r--z80.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/z80.h b/z80.h
index 05557f4..3b3220e 100644
--- a/z80.h
+++ b/z80.h
@@ -146,6 +146,17 @@ typedef enum
} Z80FlagRegister;
+/* Disassembly label -- only useful if ENABLE_DISASSEMBLER is set.
+ Labels are stored as an array, where a NULL in the label field marks
+ the end of the list.
+*/
+typedef struct
+{
+ Z80Word address;
+ const char *label;
+} Z80Label;
+
+
/* ---------------------------------------- INTERFACES
*/
@@ -214,6 +225,11 @@ void Z80GetState(Z80 *cpu, Z80State *state);
void Z80SetState(Z80 *cpu, const Z80State *state);
+/* Set address to label mappings for the disassembler
+*/
+void Z80SetLabels(Z80Label labels[]);
+
+
/* Simple disassembly. addr is updated on exit.
*/
const char *Z80Disassemble(Z80 *cpu, Z80Word *addr);