Index: src/ia32/disasm-ia32.cc |
=================================================================== |
--- src/ia32/disasm-ia32.cc (revision 4815) |
+++ src/ia32/disasm-ia32.cc (working copy) |
@@ -924,14 +924,18 @@ |
break; |
case 0xF6: |
- { int mod, regop, rm; |
- get_modrm(*(data+1), &mod, ®op, &rm); |
- if (mod == 3 && regop == eax) { |
- AppendToBuffer("test_b %s,%d", NameOfCPURegister(rm), *(data+2)); |
+ { data++; |
+ int mod, regop, rm; |
+ get_modrm(*data, &mod, ®op, &rm); |
+ if (regop == eax) { |
+ AppendToBuffer("test_b "); |
+ data += PrintRightOperand(data); |
+ int32_t imm = *data; |
+ AppendToBuffer(",0x%x", imm); |
+ data++; |
} else { |
UnimplementedInstruction(); |
} |
- data += 3; |
} |
break; |