cpu

package
v0.0.0-...-dc33bde Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 3 Imported by: 0

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
}

func NewCPU

func NewCPU(mmu *mmu.MMU, ic *interrupt.IC) *CPU

func (*CPU) GetPC

func (c *CPU) GetPC() uint16

func (*CPU) Step

func (c *CPU) Step() (int, error)

func (*CPU) String

func (c *CPU) String() string

type ExtendedOperand

type ExtendedOperand interface {
	Get() uint16
	Set(value uint16)
}

type ExtendedRegister

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

func (*ExtendedRegister) Get

func (e *ExtendedRegister) Get() uint16

func (*ExtendedRegister) Set

func (e *ExtendedRegister) Set(value uint16)

type Memory

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

func (*Memory) Get

func (m *Memory) Get() byte

func (*Memory) Set

func (m *Memory) Set(value byte)

type Operand

type Operand interface {
	Get() byte
	Set(value byte)
}

type Register

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

func (*Register) Get

func (r *Register) Get() byte

func (*Register) Set

func (r *Register) Set(value byte)

type StackPointer

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

func (*StackPointer) Get

func (s *StackPointer) Get() uint16

func (*StackPointer) Set

func (s *StackPointer) Set(value uint16)

type UnknownOpcodeError

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

func (UnknownOpcodeError) Error

func (e UnknownOpcodeError) Error() string

type UnknownPrefixOpcodeError

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

func (UnknownPrefixOpcodeError) Error

func (e UnknownPrefixOpcodeError) Error() string

Jump to

Keyboard shortcuts

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