emulator

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package emulator implements the core of 8bit machine emulator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emulator

type Emulator struct {
	// contains filtered or unexported fields
}

Emulator is the emulator main controller

func FromModel added in v0.6.0

func FromModel(model string) *Emulator

FromModel returns an emulator for a machine model name

func GetDefault added in v0.6.0

func GetDefault() *Emulator

GetDefault returns the configured emulator

func New

func New(machine machine.Machine) *Emulator

New creates a machine emulator

func (*Emulator) Controller added in v0.3.0

func (emulator *Emulator) Controller() controller.Controller

Controller gets the emulator controller

func (*Emulator) Emulate added in v0.11.0

func (emulator *Emulator) Emulate()

Emulate one frame loop

func (*Emulator) Init

func (emulator *Emulator) Init()

Init the emulation

func (*Emulator) IsRunning

func (emulator *Emulator) IsRunning() bool

IsRunning the emulation

func (*Emulator) LoadFile added in v0.11.0

func (emulator *Emulator) LoadFile(name string)

LoadFile loads file into the emulator

func (*Emulator) Machine

func (emulator *Emulator) Machine() machine.Machine

Machine gets the hosted machine

func (*Emulator) Reset

func (emulator *Emulator) Reset()

Reset the emulation

func (*Emulator) Start

func (emulator *Emulator) Start()

Start the emulation

func (*Emulator) Stop

func (emulator *Emulator) Stop()

Stop the emulation

func (*Emulator) TakeSnapshot added in v0.11.0

func (emulator *Emulator) TakeSnapshot()

TakeSnapshot takes and saves snapshop of the machine state

Directories

Path Synopsis
io
ui
vfs
Package device contains common device components like memory, video, audio, io, etc.
Package device contains common device components like memory, video, audio, io, etc.
cpu
Package cpu contains common components for CPU emulators
Package cpu contains common components for CPU emulators
cpu/z80
Package z80 a Zyxel Z80 CPU emulator
Package z80 a Zyxel Z80 CPU emulator
io
Package io contains IO devices
Package io contains IO devices
memory
Package memory defines memory components
Package memory defines memory components
video
Package video contains video components and devices
Package video contains video components and devices
Package machine contains 8bit machine and coponents implementation
Package machine contains 8bit machine and coponents implementation
cpc
Package cpc implements the Amstrad CPC machine
Package cpc implements the Amstrad CPC machine
spectrum
Package spectrum implements de ZX Spectrum machine
Package spectrum implements de ZX Spectrum machine

Jump to

Keyboard shortcuts

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