mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 15:07:45 +00:00
UserspaceEmulator: Implement short-range jump instructions
This commit is contained in:
parent
42787ae309
commit
55d2bd9eec
1 changed files with 13 additions and 2 deletions
|
@ -587,9 +587,20 @@ void SoftCPU::JMP_imm16(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::JMP_imm16_imm16(const X86::Instruction&) { TODO(); }
|
void SoftCPU::JMP_imm16_imm16(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::JMP_imm16_imm32(const X86::Instruction&) { TODO(); }
|
void SoftCPU::JMP_imm16_imm32(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::JMP_imm32(const X86::Instruction&) { TODO(); }
|
void SoftCPU::JMP_imm32(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::JMP_short_imm8(const X86::Instruction&) { TODO(); }
|
|
||||||
|
void SoftCPU::JMP_short_imm8(const X86::Instruction& insn)
|
||||||
|
{
|
||||||
|
set_eip(eip() + (i8)insn.imm8());
|
||||||
|
}
|
||||||
|
|
||||||
void SoftCPU::Jcc_NEAR_imm(const X86::Instruction&) { TODO(); }
|
void SoftCPU::Jcc_NEAR_imm(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::Jcc_imm8(const X86::Instruction&) { TODO(); }
|
|
||||||
|
void SoftCPU::Jcc_imm8(const X86::Instruction& insn)
|
||||||
|
{
|
||||||
|
if (evaluate_condition(insn.cc()))
|
||||||
|
set_eip(eip() + (i8)insn.imm8());
|
||||||
|
}
|
||||||
|
|
||||||
void SoftCPU::LAHF(const X86::Instruction&) { TODO(); }
|
void SoftCPU::LAHF(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::LAR_reg16_RM16(const X86::Instruction&) { TODO(); }
|
void SoftCPU::LAR_reg16_RM16(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::LAR_reg32_RM32(const X86::Instruction&) { TODO(); }
|
void SoftCPU::LAR_reg32_RM32(const X86::Instruction&) { TODO(); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue