Truncate the output of a relative addressing if 0x67 prefix is used.

pull/9/head
Andrei Vlad LUTAS 4 years ago
parent 752bc626c4
commit cfb0f97897

@ -4790,7 +4790,14 @@ NdToText(
if (pOp->Info.Memory.IsRipRel)
{
status = NdSprintf(temp, sizeof(temp), "rel 0x%llx", disp + Rip + Instrux->Length);
uint64_t target = disp + Rip + Instrux->Length;
if (Instrux->AddrMode == ND_ADDR_32)
{
target &= 0xFFFFFFFF;
}
status = NdSprintf(temp, sizeof(temp), "rel 0x%llx", target);
}
else
{

@ -7,6 +7,6 @@
#define DISASM_VERSION_MAJOR 1
#define DISASM_VERSION_MINOR 26
#define DISASM_VERSION_REVISION 0
#define DISASM_VERSION_REVISION 1
#endif // _DISASM_VER_H_

Loading…
Cancel
Save