summaryrefslogtreecommitdiff
path: root/68kinst.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-10-11 22:18:49 -0700
committerMichael Pavone <pavone@retrodev.com>2014-10-11 22:18:49 -0700
commitfc252737d7e366c5eccbbc08dc028b6adcb7d793 (patch)
tree970494fd15f05765b940facd8ed3a2a5f31c04e9 /68kinst.h
parenta4b73b992202fb0d0b3da08cee05e0da16be7e59 (diff)
Better support for labels sourced from VOS program module header
Diffstat (limited to '68kinst.h')
-rw-r--r--68kinst.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/68kinst.h b/68kinst.h
index d1cbd2b..3441737 100644
--- a/68kinst.h
+++ b/68kinst.h
@@ -298,12 +298,15 @@ typedef enum {
VECTOR_TRAP_15
} m68k_vector;
+typedef int (*format_label_fun)(char * dst, uint32_t address, void * data);
+
uint16_t * m68k_decode(uint16_t * istream, m68kinst * dst, uint32_t address);
uint32_t m68k_branch_target(m68kinst * inst, uint32_t *dregs, uint32_t *aregs);
uint8_t m68k_is_branch(m68kinst * inst);
uint8_t m68k_is_noncall_branch(m68kinst * inst);
int m68k_disasm(m68kinst * decoded, char * dst);
-int m68k_disasm_labels(m68kinst * decoded, char * dst);
+int m68k_disasm_labels(m68kinst * decoded, char * dst, format_label_fun label_fun, void * data);
+int m68k_default_label_fun(char * dst, uint32_t address, void * data);
#endif