summaryrefslogtreecommitdiff
path: root/z80.c
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.c
parent472447531bc02c0cbdf9793675ef4475fa07aef5 (diff)
Added labels to Z80 disassembler
Diffstat (limited to 'z80.c')
-rw-r--r--z80.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/z80.c b/z80.c
index 6986c96..cd2371a 100644
--- a/z80.c
+++ b/z80.c
@@ -38,6 +38,7 @@ static const char ident[]="$Id$";
static const char ident_z80_header[]=Z80_H;
static const char ident_z80_private_header[]=Z80_PRIVATE_H;
+Z80Label *z80_labels=NULL;
/* ---------------------------------------- PRIVATE FUNCTIONS
*/
@@ -309,6 +310,12 @@ Z80Val Z80Cycles(Z80 *cpu)
}
+void Z80SetLabels(Z80Label labels[])
+{
+ z80_labels=labels;
+}
+
+
const char *Z80Disassemble(Z80 *cpu, Z80Word *pc)
{
#ifdef ENABLE_DISASSEM