mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:47:44 +00:00
UserspaceEmulator: Implement PUSH_imm8
Curiously, the 8-bit immediate is sign-extended.
This commit is contained in:
parent
ab9c7ef63b
commit
cb2e36dde7
1 changed files with 6 additions and 1 deletions
|
@ -933,7 +933,12 @@ void SoftCPU::PUSH_imm32(const X86::Instruction& insn)
|
|||
push32(insn.imm32());
|
||||
}
|
||||
|
||||
void SoftCPU::PUSH_imm8(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::PUSH_imm8(const X86::Instruction& insn)
|
||||
{
|
||||
ASSERT(!insn.has_operand_size_override_prefix());
|
||||
push32((i32)insn.imm8());
|
||||
}
|
||||
|
||||
void SoftCPU::PUSH_reg16(const X86::Instruction&) { TODO(); }
|
||||
|
||||
void SoftCPU::PUSH_reg32(const X86::Instruction& insn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue