diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-08-28 01:32:34 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-08-28 01:32:34 +0000 |
commit | 25738474b655bbff8c31b12634d7377520420baf (patch) | |
tree | 82fe6586ff721004d71386044cf3203f55f46936 /z80.h | |
parent | 472447531bc02c0cbdf9793675ef4475fa07aef5 (diff) |
Added labels to Z80 disassembler
Diffstat (limited to 'z80.h')
-rw-r--r-- | z80.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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); |