Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InstructionSet = [256]Instruction{}/* 256 elements not displayed */
InstructionSet holds the first 256 instructions.
View Source
var InstructionSetCB = [256]Instruction{}/* 256 elements not displayed */
InstructionSetCB is the set of instructions for the CB prefix.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct {
PC, SP uint16 // (P)rogram (C)ounter, (S)tack (P)ointer
Registers
Debug, DebugBreakpoint bool
DoubleSpeed, Halted bool
// contains filtered or unexported fields
}
CPU represents the Game Boy's 8-bit CPU (sm83).
type Instruction ¶
type Instruction struct {
// contains filtered or unexported fields
}
type RegisterPair ¶
type RegisterPair [2]*Register
RegisterPair is a pair of Registers used to address them as a 16-bit value.
func (RegisterPair) SetUint16 ¶
func (r RegisterPair) SetUint16(value uint16)
func (RegisterPair) Uint16 ¶
func (r RegisterPair) Uint16() uint16
type Registers ¶
type Registers struct { A Register B Register C Register D Register E Register F Register H Register L Register BC RegisterPair DE RegisterPair HL RegisterPair AF RegisterPair }
Registers represents the GB CPU registers.
Click to show internal directories.
Click to hide internal directories.