Update libdis.h

Fixed negative address getting.
This commit is contained in:
Lab 313 2016-04-22 02:37:22 +03:00
parent fcfe3c1f4b
commit 19191876e2

View File

@ -317,6 +317,9 @@ struct x86_op_t{
case op_offset:
return data.offset;
case op_relative_far:
if (data.relative_far & 0x8000)
return (data.relative_far & 0xFFFF) | 0xFFFF0000;
else
return (int32_t)data.relative_far;
default:
assert(false);