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 ¶
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()
Click to show internal directories.
Click to hide internal directories.