summaryrefslogtreecommitdiff
path: root/disasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-07 10:05:10 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-07 10:05:10 -0700
commit588df78b0dcba0416fa172c6a8b16f712fa3befc (patch)
tree7c0182754f5a39f3994fa49239883b8c48372f15 /disasm.c
parentf70fce6cc9a1a55822a2b0fac858c1fd9f6c1731 (diff)
downloadnasm-588df78b0dcba0416fa172c6a8b16f712fa3befc.tar.gz
New opcode for 32->64 bit sign-extended immediate with warning
Add a new opcode for 32->64 bit sign-extended immediate, with warning on the number not matching. This unfortunately calls for an audit of all the \4[0123] opcodes, if they should be replaced by \25[4567]. This only replaces one instruction (MOV reg64,imm32); other instructions need to be considered. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'disasm.c')
-rw-r--r--disasm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/disasm.c b/disasm.c
index 46e3cf2f..0ff40fc1 100644
--- a/disasm.c
+++ b/disasm.c
@@ -513,6 +513,7 @@ static int matches(const struct itemplate *t, uint8_t *data,
break;
case4(040):
+ case4(0254):
opx->offset = getu32(data);
data += 4;
break;