core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core interface {
	LoadROM(rom []uint8) error
	LoadSave(savedata []uint8) error
	Reset()
	DirectBoot() error
	Quit()
	RunFrame()
	Screen() []color.NRGBA
	SetKeyInput(key string, press bool)

	// Serialize and Deserialize are used for save states
	Serialize(w io.Writer) bool
	Deserialize(r io.Reader) bool
}

type Debug

type Debug interface {
	Core
	GetValue(which uint64) uint64
	ViewMemory(memID int, addr uint32, width int) uint64
	PokeMemory(memID int, addr uint32, width int, data uint32) bool
	GetChunk(which uint64) []uint8
}

Jump to

Keyboard shortcuts

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