cpu

package
v0.0.0-...-e0ac686 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

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

CPU stores the internal CPU state

func New

func New(interrupts *interrupts.Interrupts, oam *oam.OAM, debugCPU bool, mapper *memory.Mapper) *CPU

NewCPU returns a CPU initialized as a Gameboy does on start

func (*CPU) CheckMooneye

func (cpu *CPU) CheckMooneye() []uint8

CheckMooneye checks if the magic Mooneye breakpoint was hit and if so returns the register values needed to see whether the test passed

func (*CPU) ExecuteMachineCycle

func (cpu *CPU) ExecuteMachineCycle()

ExecuteMachineCycle runs the CPU for one machine cycle

func (*CPU) Initialize

func (cpu *CPU) Initialize()

func (*CPU) OnInput

func (cpu *CPU) OnInput()

Restart the CPU again on button press

Jump to

Keyboard shortcuts

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