Index: src/ia32/disasm-ia32.cc |
diff --git a/src/ia32/disasm-ia32.cc b/src/ia32/disasm-ia32.cc |
index 9eb0d292c74001159c74ad64b7f868e69b96c220..8f22df18aecdc6dbb1f599dfc24a27ac1967df40 100644 |
--- a/src/ia32/disasm-ia32.cc |
+++ b/src/ia32/disasm-ia32.cc |
@@ -554,6 +554,7 @@ int DisassemblerIA32::F7Instruction(byte* data) { |
case 3: mnem = "neg"; break; |
case 4: mnem = "mul"; break; |
case 5: mnem = "imul"; break; |
+ case 6: mnem = "div"; break; |
case 7: mnem = "idiv"; break; |
default: UnimplementedInstruction(); |
} |
@@ -605,7 +606,7 @@ int DisassemblerIA32::D1D3C1Instruction(byte* data) { |
} |
ASSERT_NE(NULL, mnem); |
AppendToBuffer("%s %s,", mnem, NameOfCPURegister(rm)); |
- if (imm8 > 0) { |
+ if (imm8 >= 0) { |
AppendToBuffer("%d", imm8); |
} else { |
AppendToBuffer("cl"); |