From aa13183615449cf8d90c3073059f7ffb0ccace92 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 12 Jul 2020 00:31:25 +0200 Subject: [PATCH] UserspaceEmulator: Implement SETcc_RM8 --- DevTools/UserspaceEmulator/SoftCPU.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DevTools/UserspaceEmulator/SoftCPU.cpp b/DevTools/UserspaceEmulator/SoftCPU.cpp index 73406d79cd..9508ec1f95 100644 --- a/DevTools/UserspaceEmulator/SoftCPU.cpp +++ b/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(); }