momiji
m68k emulator infrastructure
About Source codeTable of contents
momiji::continueEmulatorExecution
Defined in header <momiji/Emulator.h>
Continues the execution of an emulator until possible
void continueEmulatorExecution(Emulator& emu) noexcept |
(1) |
void continueEmulatorExecution(Emulator& emu, F&& fun) noexcept |
(2) |
-
Steps through the emulator until there are no more instructions to execute or an error occurs
Parameters:-
Emulator& emu
: The emulator of which the execution shall continue
-
-
Steps through the emulator until there are no more instructions to execute or an error occurs.
For each instruction executed, the functor F is called
Parameters:-
Emulator& emu
: The emulator of which the execution shall continue -
F&& fun
: The functor to be called for every instruction executed. The functor shall be of the formvoid(void)
-
This function is equivalent to doing the following:
while (emu.step())
{
}
Or the following:
while (emu.step())
{
fun();
}