Documentation ¶
Overview ¶
Package govern defines the types that define the current condition of the emulation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mode ¶
type Mode int
Mode inidicates the broad condition of the emulation. Currently defined to be debugger and play.
type State ¶
type State int
State indicates the emulation's state.
List of possible emulation states.
EmulatorStart is the default state and should never be entered once the emulator has begun.
Initialising can be used when reinitialising the emulator. for example, when a new cartridge is being inserted.
Values are ordered so that order comparisons are meaningful. For example, Running is "greater than" Stepping, Paused, etc.
* There is a sub-state of the rewinding state that we can think of as the "catch-up" state. This occurs in the brief transition period between Rewinding and the Running or Pausing state.
Currently, we handle this state in the CartUpLoop() function of the debugger package. There is a good argument to be made for having the catch-up state as a distinct State listed below.