disasm: fix reversed REP vs REPNE in eatbyte()
authorH. Peter Anvin <hpa@zytor.com>
Thu, 19 Mar 2009 13:52:07 +0000 (06:52 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 19 Mar 2009 13:52:07 +0000 (06:52 -0700)
F2 is REPNE, F3 is REP(E)

disasm.c

index f410418..349a3ff 100644 (file)
--- 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";