momiji

m68k emulator infrastructure

About Source code

Table of contents

momiji::RetainStates

Defined in header <momiji/Emulator.h>

enum class RetainStates : std::int8_t

Policy to determine if the emulator should maintain previous system states when stepping through the assembled code.

Values

Always

Tells the emulator to always create new copies of the system states for each instruction execution.

Never

Tells the emulator to never keep track of the various system states. In this mode, each instruction modifies the same [momiji::System]({{ ‘/userapi/System’ | relative_url }}), doing a [rollback()]({{ ‘/userapi/Emulator/c_Emulator/m_rollback’ | relative_url }}) is equivalent to resetting the emulator ([reset()]({{ ‘/userapi/Emulator/c_Emulator/m_reset)’ | relative_url }}).

Parsing a new source code in this mode will also reset the emulator.