registers

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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagZERO   uint8 = 1 << 7
	FlagSUB    uint8 = 1 << 6
	FlagHCARRY uint8 = 1 << 5
	FlagCARRY  uint8 = 1 << 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Registers

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

Registers manage CPU registers values

8 bit registers can be combined to 16 bit registers

func (*Registers) GetA

func (r *Registers) GetA() uint8

func (*Registers) GetAF

func (r *Registers) GetAF() uint16

func (*Registers) GetB

func (r *Registers) GetB() uint8

func (*Registers) GetBC

func (r *Registers) GetBC() uint16

func (*Registers) GetC

func (r *Registers) GetC() uint8

func (*Registers) GetD

func (r *Registers) GetD() uint8

func (*Registers) GetDE

func (r *Registers) GetDE() uint16

func (*Registers) GetE

func (r *Registers) GetE() uint8

func (*Registers) GetF

func (r *Registers) GetF() uint8

func (*Registers) GetFlag

func (r *Registers) GetFlag(mask uint8) bool

func (*Registers) GetH

func (r *Registers) GetH() uint8

func (*Registers) GetHL

func (r *Registers) GetHL() uint16

func (*Registers) GetL

func (r *Registers) GetL() uint8

func (*Registers) GetPC

func (r *Registers) GetPC() uint16

func (*Registers) GetSP

func (r *Registers) GetSP() uint16

func (*Registers) SetA

func (r *Registers) SetA(v uint8)

func (*Registers) SetAF

func (r *Registers) SetAF(v uint16)

func (*Registers) SetB

func (r *Registers) SetB(v uint8)

func (*Registers) SetBC

func (r *Registers) SetBC(v uint16)

func (*Registers) SetC

func (r *Registers) SetC(v uint8)

func (*Registers) SetD

func (r *Registers) SetD(v uint8)

func (*Registers) SetDE

func (r *Registers) SetDE(v uint16)

func (*Registers) SetE

func (r *Registers) SetE(v uint8)

func (*Registers) SetF

func (r *Registers) SetF(v uint8)

func (*Registers) SetFlag

func (r *Registers) SetFlag(mask uint8, set bool)

func (*Registers) SetH

func (r *Registers) SetH(v uint8)

func (*Registers) SetHL

func (r *Registers) SetHL(v uint16)

func (*Registers) SetL

func (r *Registers) SetL(v uint8)

func (*Registers) SetPC

func (r *Registers) SetPC(v uint16)

func (*Registers) SetSP

func (r *Registers) SetSP(v uint16)

Jump to

Keyboard shortcuts

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