register

package
v0.0.0-...-7d09a16 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlRegister

type ControlRegister struct {
	EnableNMI         uint8 // 1000 0000
	SlaveMode         uint8 // 0100 0000
	SpriteSize        uint8 // 0010 0000
	PatternBackground uint8 // 0001 0000
	PatternSprite     uint8 // 0000 1000
	IncrementMode     uint8 // 0000 0100
	NameTableY        uint8 // 0000 0010
	NameTableX        uint8 // 0000 0001
}

func (*ControlRegister) Set

func (r *ControlRegister) Set(val uint8)

func (*ControlRegister) Value

func (r *ControlRegister) Value() uint8

type MaskRegister

type MaskRegister struct {
	EnhanceBlue          uint8 // 1000 0000
	EnhanceGreen         uint8 // 0100 0000
	EnhanceRed           uint8 // 0010 0000
	RenderSprites        uint8 // 0001 0000
	RenderBackground     uint8 // 0000 1000
	RenderSpritesLeft    uint8 // 0000 0100
	RenderBackgroundLeft uint8 // 0000 0010
	Grayscale            uint8 // 0000 0001
}

func (*MaskRegister) Set

func (r *MaskRegister) Set(val uint8)

func (*MaskRegister) Value

func (r *MaskRegister) Value() uint8

type StatusRegister

type StatusRegister struct {
	VerticalBlank  uint8 // 1000 0000
	SpriteZeroHit  uint8 // 0100 0000
	SpriteOverflow uint8 // 0010 0000
	Unused         uint8 // 0001 1111
}

func (*StatusRegister) Set

func (r *StatusRegister) Set(val uint8)

func (*StatusRegister) Value

func (r *StatusRegister) Value() uint8

type VRAMRegister

type VRAMRegister struct {
	Unused     uint16 // 1000 0000 0000 0000 // 1
	FineY      uint16 // 0111 0000 0000 0000 // 3
	NameTableY uint16 // 0000 1000 0000 0000 // 1
	NameTableX uint16 // 0000 0100 0000 0000 // 1
	CoarseY    uint16 // 0000 0011 1110 0000 // 5
	CoarseX    uint16 // 0000 0000 0001 1111 // 5
}

func (*VRAMRegister) And

func (r *VRAMRegister) And(val uint16)

func (*VRAMRegister) Copy

func (r *VRAMRegister) Copy(src *VRAMRegister)

func (*VRAMRegister) FlipNameTableX

func (r *VRAMRegister) FlipNameTableX()

func (*VRAMRegister) FlipNameTableY

func (r *VRAMRegister) FlipNameTableY()

func (*VRAMRegister) Increment

func (r *VRAMRegister) Increment(val int)

func (*VRAMRegister) Set

func (r *VRAMRegister) Set(val uint16)

func (*VRAMRegister) Value

func (r *VRAMRegister) Value() uint16

Jump to

Keyboard shortcuts

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