1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

UserspaceEmulator: Support MOV_RM32_reg32 with memory destination

This commit is contained in:
Andreas Kling 2020-07-11 13:29:05 +02:00
parent e5afe6a579
commit 743d4ccb8f

View file

@ -521,8 +521,7 @@ void SoftCPU::MOV_RM32_imm32(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)