summaryrefslogtreecommitdiff
path: root/disasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-03-18 23:10:19 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-03-18 23:10:19 -0700
commited37aa8070cabf80de269508cbf022bc2b464d26 (patch)
tree73394bc04a59da69e9dac998c02fac2520675c40 /disasm.h
parentd1174fb1a68a73b17010adb312f9329b4ce411eb (diff)
downloadnasm-ed37aa8070cabf80de269508cbf022bc2b464d26.tar.gz
disasm: when no instruction is found, consider a naked prefix
If we can't find a matching instruction, rather than printing it as a "db" literal, consider first if we can disassemble it as a naked prefix.
Diffstat (limited to 'disasm.h')
-rw-r--r--disasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/disasm.h b/disasm.h
index 56785ce6..6467730a 100644
--- a/disasm.h
+++ b/disasm.h
@@ -13,6 +13,6 @@
int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize,
int32_t offset, int autosync, uint32_t prefer);
-int32_t eatbyte(uint8_t *data, char *output, int outbufsize);
+int32_t eatbyte(uint8_t *data, char *output, int outbufsize, int segsize);
#endif