From 8940916232d9797436aea3f5bede652b2f7ab67f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 12 Jul 2020 14:54:30 +0200 Subject: UserspaceEmulator: Implement JMP_RM32 --- DevTools/UserspaceEmulator/SoftCPU.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DevTools/UserspaceEmulator/SoftCPU.cpp b/DevTools/UserspaceEmulator/SoftCPU.cpp index 1575c01ee5..44581cc517 100644 --- a/DevTools/UserspaceEmulator/SoftCPU.cpp +++ b/DevTools/UserspaceEmulator/SoftCPU.cpp @@ -914,7 +914,11 @@ void SoftCPU::JCXZ_imm8(const X86::Instruction&) { TODO(); } void SoftCPU::JMP_FAR_mem16(const X86::Instruction&) { TODO(); } void SoftCPU::JMP_FAR_mem32(const X86::Instruction&) { TODO(); } void SoftCPU::JMP_RM16(const X86::Instruction&) { TODO(); } -void SoftCPU::JMP_RM32(const X86::Instruction&) { TODO(); } + +void SoftCPU::JMP_RM32(const X86::Instruction& insn) +{ + set_eip(insn.modrm().read32(*this, insn)); +} void SoftCPU::JMP_imm16(const X86::Instruction& insn) { -- cgit v1.2.3