emulator

package
v0.0.0-...-19e7a64 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeepRoutine

func BeepRoutine(soundTimer *bool)

func RunEmulator

func RunEmulator(clockSpeed uint64, programPath string)

Run the emulator subroutines.

func RunGraphics

func RunGraphics(screenBuffer *[32]uint64, keyboardBuffer *uint16)

Types

type Emulator

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

func NewEmulator

func NewEmulator(clockSpeed uint64, programPath string) *Emulator

func (*Emulator) RunEmulator

func (e *Emulator) RunEmulator(program []byte, programSize uint16)

type Graphics

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

func NewGraphics

func NewGraphics(screenBuffer *[32]uint64, keyboardBuffer *uint16) *Graphics

func (*Graphics) Mainloop

func (g *Graphics) Mainloop()

Loop through the graphics engine.

Directories

Path Synopsis
Contains structs and methods for the chip-8 memory.
Contains structs and methods for the chip-8 memory.

Jump to

Keyboard shortcuts

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