1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

UserspaceEmulator: Implement MUL_RM32

This commit is contained in:
Andreas Kling 2020-07-15 17:16:37 +02:00
parent 029fe56d69
commit 76b2a2789b

View file

@ -1288,7 +1288,17 @@ void SoftCPU::MOV_reg8_imm8(const X86::Instruction& insn)
void SoftCPU::MOV_seg_RM16(const X86::Instruction&) { TODO(); }
void SoftCPU::MOV_seg_RM32(const X86::Instruction&) { TODO(); }
void SoftCPU::MUL_RM16(const X86::Instruction&) { TODO(); }
void SoftCPU::MUL_RM32(const X86::Instruction&) { TODO(); }
void SoftCPU::MUL_RM32(const X86::Instruction& insn)
{
u64 result = (u64)eax() * (u64)insn.modrm().read32(*this, insn);
set_eax(result & 0xffffffff);
set_edx(result >> 32);
set_cf(edx() != 0);
set_of(edx() != 0);
}
void SoftCPU::MUL_RM8(const X86::Instruction&) { TODO(); }
void SoftCPU::NEG_RM16(const X86::Instruction& insn)