Documentation ¶
Overview ¶
Package memory implements access to 16-bit address space.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper struct { // Zero value for unmapped areas. Zero uint8 // contains filtered or unexported fields }
Mapper for bank switched memory access.
func NewMapper ¶
func NewMapper() *Mapper
NewMapper creates a new mapper with 0xff as the zero value.
type Masked ¶
type Masked struct { Memory // Mask is the memory mask. To limit memory access to 1k for example, use // a mask of 2^10-1 (0x3ff). Mask uint16 }
Masked memory access allows one to restrict and/or translate 16-bit memory to a smaller range.
type Memory ¶
type Memory interface { // Fetch a byte Fetch(addr uint16) (value uint8) // Store a byte Store(addr uint16, value uint8) }
Memory implements a 16-bit address bus.
type RAM ¶
type RAM []uint8
RAM is Rendom Access Memory.
Click to show internal directories.
Click to hide internal directories.