summaryrefslogtreecommitdiff
path: root/disasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-06-26 16:18:00 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-06-26 16:18:00 -0700
commitd28f07f7e34e1201ebc3e62cc2cf38479908fb0b (patch)
treeb674fcae9cea8757952c85c1c9e4537c4379192e /disasm.c
parentb9893413ec4ade88e88db2220edca420c46db152 (diff)
downloadnasm-d28f07f7e34e1201ebc3e62cc2cf38479908fb0b.tar.gz
nasm-d28f07f7e34e1201ebc3e62cc2cf38479908fb0b.tar.bz2
nasm-d28f07f7e34e1201ebc3e62cc2cf38479908fb0b.zip
ndisasm: fix disassembly of JRCXZ
Fix the disassembly of JRCXZ; in 64-bit mode, we should only accept JECXZ for disassembly with 32-bit address size override. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'disasm.c')
-rw-r--r--disasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disasm.c b/disasm.c
index 0c13635..4cf25ef 100644
--- a/disasm.c
+++ b/disasm.c
@@ -726,7 +726,7 @@ static int matches(const struct itemplate *t, uint8_t *data,
break;
case 0311:
- if (asize == 16)
+ if (asize != 32)
return false;
else
a_used = true;