mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
UserspaceEmulator: Implement JMP_imm16 and JMP_imm32
This commit is contained in:
parent
12566b9df0
commit
321ee72fe7
1 changed files with 11 additions and 2 deletions
|
@ -683,10 +683,19 @@ void SoftCPU::JMP_FAR_mem16(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::JMP_FAR_mem32(const X86::Instruction&) { TODO(); }
|
void SoftCPU::JMP_FAR_mem32(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::JMP_RM16(const X86::Instruction&) { TODO(); }
|
void SoftCPU::JMP_RM16(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::JMP_RM32(const X86::Instruction&) { TODO(); }
|
void SoftCPU::JMP_RM32(const X86::Instruction&) { TODO(); }
|
||||||
void SoftCPU::JMP_imm16(const X86::Instruction&) { TODO(); }
|
|
||||||
|
void SoftCPU::JMP_imm16(const X86::Instruction& insn)
|
||||||
|
{
|
||||||
|
set_eip(eip() + (i16)insn.imm16());
|
||||||
|
}
|
||||||
|
|
||||||
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& insn)
|
||||||
|
{
|
||||||
|
set_eip(eip() + (i32)insn.imm32());
|
||||||
|
}
|
||||||
|
|
||||||
void SoftCPU::JMP_short_imm8(const X86::Instruction& insn)
|
void SoftCPU::JMP_short_imm8(const X86::Instruction& insn)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue