ram

package
v0.3.0-beta Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAIN_RAM_SIZE = 1024 * 2 // 2 kiB main RAM
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CIRam

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

func NewCIRam

func NewCIRam() *CIRam

func (*CIRam) Peek

func (p *CIRam) Peek(addr memory.Ptr) byte

func (*CIRam) Poke

func (p *CIRam) Poke(addr memory.Ptr, val byte)

func (*CIRam) SetNametableMirroring

func (p *CIRam) SetNametableMirroring(logical, physical int)

type MainRAM

type MainRAM struct {
	RAM
}

func NewMainRAM

func NewMainRAM() *MainRAM

func (*MainRAM) Peek

func (ram *MainRAM) Peek(addr memory.Ptr) byte

func (*MainRAM) Poke

func (ram *MainRAM) Poke(addr memory.Ptr, val byte)

type RAM

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

func NewRAM

func NewRAM(size int) *RAM

func (*RAM) Peek

func (r *RAM) Peek(addr memory.Ptr) byte

func (*RAM) Poke

func (r *RAM) Poke(addr memory.Ptr, val byte)

Jump to

Keyboard shortcuts

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