cpu

package
v0.0.0-...-88ca599 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bit0 uint8 = 1 << iota
	Bit1 uint8 = 1 << iota
	Bit2 uint8 = 1 << iota
	Bit3 uint8 = 1 << iota
	Bit4 uint8 = 1 << iota
	Bit5 uint8 = 1 << iota
	Bit6 uint8 = 1 << iota
	Bit7 uint8 = 1 << iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

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

CPU emulate GameBoy CPU

func NewCPU

func NewCPU(memory *mmu.MMU, interrupts *interrupt.Manager) *CPU

NewCPU return a new initialised GameBoy CPU

func (*CPU) Tick

func (c *CPU) Tick() (clockUsed uint8)

Tick read the next opcode at address PC and execute corresponding instruction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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