From 6ec0a63af136cbbca06441e92257b2d355441096 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 12 Jul 2020 14:42:15 +0200 Subject: [PATCH] UserspaceEmulator: Fix broken MOV_RM8_reg8 --- DevTools/UserspaceEmulator/SoftCPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DevTools/UserspaceEmulator/SoftCPU.cpp b/DevTools/UserspaceEmulator/SoftCPU.cpp index fb9f0c30c7..e3b352eba2 100644 --- a/DevTools/UserspaceEmulator/SoftCPU.cpp +++ b/DevTools/UserspaceEmulator/SoftCPU.cpp @@ -1000,7 +1000,7 @@ void SoftCPU::MOV_RM8_imm8(const X86::Instruction& insn) void SoftCPU::MOV_RM8_reg8(const X86::Instruction& insn) { - insn.modrm().write8(*this, insn, insn.modrm().read8(*this, insn)); + insn.modrm().write8(*this, insn, gpr8(insn.reg8())); } void SoftCPU::MOV_moff16_AX(const X86::Instruction&) { TODO(); }