mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:27:44 +00:00
UserspaceEmulator: Don't exit the emulation loop on "RET" :^)
This commit is contained in:
parent
4d366b8b24
commit
dc66d70369
1 changed files with 0 additions and 4 deletions
|
@ -131,10 +131,6 @@ int Emulator::exec()
|
||||||
auto insn = X86::Instruction::from_stream(m_cpu, true, true);
|
auto insn = X86::Instruction::from_stream(m_cpu, true, true);
|
||||||
out() << (const void*)base_eip << " \033[33;1m" << insn.to_string(base_eip) << "\033[0m";
|
out() << (const void*)base_eip << " \033[33;1m" << insn.to_string(base_eip) << "\033[0m";
|
||||||
|
|
||||||
// FIXME: Remove this hack once it's no longer needed :^)
|
|
||||||
if (insn.mnemonic() == "RET")
|
|
||||||
break;
|
|
||||||
|
|
||||||
(m_cpu.*insn.handler())(insn);
|
(m_cpu.*insn.handler())(insn);
|
||||||
m_cpu.dump();
|
m_cpu.dump();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue