summaryrefslogtreecommitdiff
path: root/z80.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-08-28 01:32:34 +0000
committerIan C <ianc@noddybox.co.uk>2006-08-28 01:32:34 +0000
commit25738474b655bbff8c31b12634d7377520420baf (patch)
tree82fe6586ff721004d71386044cf3203f55f46936 /z80.h
parent472447531bc02c0cbdf9793675ef4475fa07aef5 (diff)
Added labels to Z80 disassembler
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);