cpu

package
v0.0.0-...-785681e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScreenWidth  = 64
	ScreenHeight = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chip8

type Chip8 struct {
	Screen      [ScreenHeight][ScreenWidth]uint8 // 64x32-pixel display
	KeysPressed [16]bool
	// contains filtered or unexported fields
}

func NewCPU

func NewCPU() *Chip8

func (*Chip8) Cycle

func (c *Chip8) Cycle()

fetch, decode, and execute

func (*Chip8) LoadROM

func (c *Chip8) LoadROM(f *os.File) error

Jump to

Keyboard shortcuts

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