lr35902

package
v0.0.0-...-33ef502 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OPCodes = make([]*opCode, 256)
View Source
var OPCodesCB = make([]*opCode, 256)

Functions

This section is empty.

Types

type CPUTrap

type CPUTrap func()

type LR35902

type LR35902 interface {
	cpu.CPU
	Registers() *LR35902Registers
	RegisterTrap(pc uint16, trap CPUTrap)
	cpu.PortManager
}

func New

func New(bus cpu.Bus) LR35902

type LR35902Registers

type LR35902Registers struct {
	PC uint16

	A byte
	F *flags

	B  byte
	C  byte
	BC *cpu.RegPair

	D  byte
	E  byte
	DE *cpu.RegPair

	H  byte
	L  byte
	HL *cpu.RegPair

	S  byte
	P  byte
	SP *cpu.RegPair

	IME bool
	IE  byte
	IF  byte
}

Jump to

Keyboard shortcuts

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