memory

package
v0.0.0-...-8886972 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RAM

type RAM struct {
	Buf []byte
}

func NewRAM

func NewRAM(size int) *RAM

func (*RAM) Read

func (r *RAM) Read(addr types.Addr) byte

func (*RAM) Write

func (r *RAM) Write(addr types.Addr, value byte)

type ROM

type ROM struct {
	Buf []byte
}

ROM is a readonly memory

func NewROM

func NewROM(data []byte) *ROM

func (*ROM) Read

func (r *ROM) Read(addr uint32) byte

max ROM size is 8MB > uint16

Jump to

Keyboard shortcuts

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