mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
UserspaceEmulator: Fix XCHG_AX_reg16 overwriting entire EAX
This instruction should only write to the lower 16 bits (AX)
This commit is contained in:
@@ -2138,7 +2138,7 @@ void SoftCPU::XCHG_AX_reg16(const X86::Instruction& insn)
|
||||
{
|
||||
auto temp = gpr16(insn.reg16());
|
||||
gpr16(insn.reg16()) = eax();
|
||||
set_eax(temp);
|
||||
set_ax(temp);
|
||||
}
|
||||
|
||||
void SoftCPU::XCHG_EAX_reg32(const X86::Instruction& insn)
|
||||
|
||||
Reference in New Issue
Block a user