summaryrefslogtreecommitdiff
path: root/disasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-03-19 06:52:07 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-03-19 06:52:07 -0700
commit1d7d7c64cf4c0ba2f0e0681a578af0323cc9ad3d (patch)
tree9328000087f82557378ebd7be7d29192860639a1 /disasm.c
parented37aa8070cabf80de269508cbf022bc2b464d26 (diff)
downloadnasm-1d7d7c64cf4c0ba2f0e0681a578af0323cc9ad3d.tar.gz
nasm-1d7d7c64cf4c0ba2f0e0681a578af0323cc9ad3d.tar.bz2
nasm-1d7d7c64cf4c0ba2f0e0681a578af0323cc9ad3d.zip
disasm: fix reversed REP vs REPNE in eatbyte()
F2 is REPNE, F3 is REP(E)
Diffstat (limited to 'disasm.c')
-rw-r--r--disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disasm.c b/disasm.c
index f410418..349a3ff 100644
--- a/disasm.c
+++ b/disasm.c
@@ -1432,10 +1432,10 @@ int32_t eatbyte(uint8_t *data, char *output, int outbufsize, int segsize)
switch (byte) {
case 0xF2:
- str = "rep";
+ str = "repne";
break;
case 0xF3:
- str = "repne";
+ str = "rep";
break;
case 0x9B:
str = "wait";