mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
UserspaceEmulator: Implement JMP_NEAR_imm
This is a full-width relative jump, when the 8-bit immediate variant isn't large enough.
This commit is contained in:
parent
938a00ecf9
commit
bdf72a7c7a
1 changed files with 5 additions and 1 deletions
|
@ -882,7 +882,11 @@ 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& insn)
|
||||
{
|
||||
if (evaluate_condition(insn.cc()))
|
||||
set_eip(eip() + (i32)insn.imm32());
|
||||
}
|
||||
|
||||
void SoftCPU::Jcc_imm8(const X86::Instruction& insn)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue