summaryrefslogtreecommitdiff
path: root/DevTools/UserspaceEmulator/SoftCPU.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DevTools/UserspaceEmulator/SoftCPU.cpp')
-rw-r--r--DevTools/UserspaceEmulator/SoftCPU.cpp2
1 files changed, 1 insertions, 1 deletions
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(); }