cpu

package
Version: v0.0.0-...-e15056c Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2018 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Overview

Package cpu implements the CPU and Registers type

Index

Constants

View Source
const (
	V_BLANK_IR_ADDR        types.Word = 0x40
	LCD_IR_ADDR            types.Word = 0x48
	TIMER_OVERFLOW_IR_ADDR types.Word = 0x50
	JOYP_HILO_IR_ADDR      types.Word = 0x60
)

interrupt handler addresses

Variables

This section is empty.

Functions

func NewCPU

func NewCPU(mmu mmu.MMU, l *logger.Logger) *cpu

Types

type Flags

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

func (Flags) String

func (f Flags) String() string

type Registers

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

func (Registers) String

func (r Registers) String() string

String prints registers as string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL