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 Quantum ¶ added in v0.25.0
type Quantum int
Quantum specifies the step granularity of the emulator.
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.
Note that there is a sub-state of the rewinding state that we can potentially think of as the "catch-up" state. This occurs in the brief transition period between Rewinding and the Running or Pausing state. For simplicity, the catch-up loop is part of the Rewinding state