Parcourir la source

UserspaceEmulator: Implement SETcc_RM8

Andreas Kling il y a 5 ans
Parent
commit
aa13183615
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      DevTools/UserspaceEmulator/SoftCPU.cpp

+ 6 - 1
DevTools/UserspaceEmulator/SoftCPU.cpp

@@ -1229,7 +1229,12 @@ void SoftCPU::SBB_reg8_RM8(const X86::Instruction&) { TODO(); }
 void SoftCPU::SCASB(const X86::Instruction&) { TODO(); }
 void SoftCPU::SCASD(const X86::Instruction&) { TODO(); }
 void SoftCPU::SCASW(const X86::Instruction&) { TODO(); }
-void SoftCPU::SETcc_RM8(const X86::Instruction&) { TODO(); }
+
+void SoftCPU::SETcc_RM8(const X86::Instruction& insn)
+{
+    insn.modrm().write8(*this, insn, evaluate_condition(insn.cc()));
+}
+
 void SoftCPU::SGDT(const X86::Instruction&) { TODO(); }
 void SoftCPU::SHLD_RM16_reg16_CL(const X86::Instruction&) { TODO(); }
 void SoftCPU::SHLD_RM16_reg16_imm8(const X86::Instruction&) { TODO(); }