chip8

package
v0.0.0-...-421818b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownOpcode = errors.New("unknown opcode")

Functions

This section is empty.

Types

type Chip8

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

func New

func New() *Chip8

func (*Chip8) Cycle

func (c *Chip8) Cycle()

func (*Chip8) LoadROM

func (c *Chip8) LoadROM(name string) error

func (*Chip8) UpdateTimers

func (c *Chip8) UpdateTimers()

type Emulator

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

func NewEmulator

func NewEmulator() (*Emulator, error)

func (*Emulator) Cycle

func (e *Emulator) Cycle()

func (*Emulator) LoadROM

func (e *Emulator) LoadROM(name string)

func (*Emulator) ProcessEvents

func (e *Emulator) ProcessEvents() bool

func (*Emulator) Shutdown

func (e *Emulator) Shutdown()

func (*Emulator) UpdateScreen

func (e *Emulator) UpdateScreen()

func (*Emulator) UpdateTimers

func (e *Emulator) UpdateTimers()

Jump to

Keyboard shortcuts

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