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 ¶
func StateIntegrity ¶ added in v0.30.0
StateIntegrity checks whether the combination of state, sub-state makes sense. The previous state is also required for a complete check.
Rules:
NoSubState can coexist with any state
PausedAtStart and PausedAtEnd can only be paired with the Paused State
RewindingBackwards and RewindingForwards can only be paired with the Rewinding state
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.
Paused and Rewinding can have meaningful sub-states