Documentation ¶
Overview ¶
Package mem implements memory devices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressSpace ¶
AddressSpace maps 16-bit addresses to 16-bit values.
type RAM ¶
type RAM struct { Mem AddressSpace VGAOffset uint16 VGAWidth int VGAHeight int StackMin uint16 StackMax uint16 ProgramOffset uint16 HeapOffset uint16 }
RAM represents 128K of word-based memory (64K addresses).
func NewRAM ¶
func NewRAM(a AddressSpace, vw int, vh int) *RAM
NewRAM returns a pointer to a newly initialized RAM.
Click to show internal directories.
Click to hide internal directories.