emulation

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: GPL-3.0, GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package emulation is an abstraction of the various modes Gopher2600 can operate in, principally play-mode and the debugger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debugger

type Debugger interface {
}

VCS is a minimal abstraction of the Gopher2600 debugger. Exists mainly to avoid a circular import to the debugger package.

type Emulation

type Emulation interface {
	VCS() VCS
	Debugger() Debugger
	UserInput() chan userinput.Event
	State() State
	Pause(set bool)
}

Emulation defines the public functions required for a GUI implementation (and possibly other things) to interface with the underlying emulator.

type State

type State int

State indicates the emulation's state.

const (
	Initialising State = iota
	Running
	Paused
	Stepping
	Rewinding
	Halt
)

List of possible emulation states.

type VCS

type VCS interface {
}

VCS is a minimal abstraction of the VCS hardware. Exists mainly to avoid a circular import to the hardware package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL