mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
UserspaceEmulator: Implement the RET instruction
We can now return from a CALL! :^)
This commit is contained in:
parent
0f63d8c9b4
commit
7596ae4596
1 changed files with 7 additions and 1 deletions
|
@ -823,7 +823,13 @@ void SoftCPU::RCR_RM8_1(const X86::Instruction&) { TODO(); }
|
|||
void SoftCPU::RCR_RM8_CL(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::RCR_RM8_imm8(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::RDTSC(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::RET(const X86::Instruction&) { TODO(); }
|
||||
|
||||
void SoftCPU::RET(const X86::Instruction& insn)
|
||||
{
|
||||
ASSERT(!insn.has_operand_size_override_prefix());
|
||||
set_eip(pop32());
|
||||
}
|
||||
|
||||
void SoftCPU::RETF(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::RETF_imm16(const X86::Instruction&) { TODO(); }
|
||||
void SoftCPU::RET_imm16(const X86::Instruction&) { TODO(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue