Ver código fonte

UserspaceEmulator: Support MOV_RM32_reg32 with memory destination

Andreas Kling 5 anos atrás
pai
commit
743d4ccb8f
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      DevTools/UserspaceEmulator/SoftCPU.cpp

+ 1 - 2
DevTools/UserspaceEmulator/SoftCPU.cpp

@@ -521,8 +521,7 @@ void SoftCPU::MOV_RM32_imm32(const X86::Instruction& insn)
 
 
 void SoftCPU::MOV_RM32_reg32(const X86::Instruction& insn)
 void SoftCPU::MOV_RM32_reg32(const X86::Instruction& insn)
 {
 {
-    ASSERT(insn.modrm().is_register());
-    gpr32(insn.modrm().reg32()) = gpr32(insn.reg32());
+    insn.modrm().write32(*this, insn, gpr32(insn.reg32()));
 }
 }
 
 
 void SoftCPU::MOV_RM8_imm8(const X86::Instruction& insn)
 void SoftCPU::MOV_RM8_imm8(const X86::Instruction& insn)