mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
UserspaceEmulator: Implement the MOVZX instruction
This commit is contained in:
parent
0af485dfff
commit
12566b9df0
Notes:
sideshowbarker
2024-07-19 04:55:35 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/12566b9df07
1 changed files with 16 additions and 3 deletions
|
@ -746,9 +746,22 @@ void SoftCPU::MOVSW(const X86::Instruction&) { TODO(); }
|
|||
void SoftCPU::MOVSX_reg16_RM8(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::MOVSX_reg32_RM16(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::MOVSX_reg32_RM8(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::MOVZX_reg16_RM8(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::MOVZX_reg32_RM16(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::MOVZX_reg32_RM8(const X86::Instruction&) { TODO(); }
|
||||
|
||||
void SoftCPU::MOVZX_reg16_RM8(const X86::Instruction& insn)
|
||||
{
|
||||
gpr16(insn.reg16()) = insn.modrm().read8(*this, insn);
|
||||
}
|
||||
|
||||
void SoftCPU::MOVZX_reg32_RM16(const X86::Instruction& insn)
|
||||
{
|
||||
gpr32(insn.reg32()) = insn.modrm().read16(*this, insn);
|
||||
}
|
||||
|
||||
void SoftCPU::MOVZX_reg32_RM8(const X86::Instruction& insn)
|
||||
{
|
||||
gpr32(insn.reg32()) = insn.modrm().read8(*this, insn);
|
||||
}
|
||||
|
||||
void SoftCPU::MOV_AL_moff8(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::MOV_AX_moff16(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::MOV_CR_reg32(const X86::Instruction&) { TODO(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue