From 25738474b655bbff8c31b12634d7377520420baf Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 28 Aug 2006 01:32:34 +0000 Subject: Added labels to Z80 disassembler --- z80.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'z80.c') 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 -- cgit v1.2.3