Documentation ¶
Overview ¶
Package vcs represents the areas of memory that are internal to the VCS hardware. Compare with the cartridge package which represents memory (ROM and sometimes RAM) peripheral to the VCS.
Index ¶
- type ChipMemory
- func (area *ChipMemory) ChipRead() (bool, bus.ChipData)
- func (area *ChipMemory) ChipWrite(reg addresses.ChipRegister, data uint8)
- func (area *ChipMemory) LastReadRegister() string
- func (area *ChipMemory) Peek(address uint16) (uint8, error)
- func (area *ChipMemory) Poke(address uint16, value uint8) error
- func (area *ChipMemory) Read(address uint16) (uint8, error)
- func (area *ChipMemory) Reset()
- func (area *ChipMemory) Snapshot() *ChipMemory
- func (area *ChipMemory) Write(address uint16, data uint8) error
- type RAM
- func (ram *RAM) Peek(address uint16) (uint8, error)
- func (ram *RAM) Poke(address uint16, value uint8) error
- func (ram *RAM) Read(address uint16) (uint8, error)
- func (ram *RAM) Reset()
- func (ram *RAM) Snapshot() *RAM
- func (ram *RAM) String() string
- func (ram *RAM) Write(address uint16, data uint8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChipMemory ¶
type ChipMemory struct { bus.DebugBus bus.ChipBus bus.CPUBus // contains filtered or unexported fields }
ChipMemory defines the information for and operations allowed for those memory areas accessed by the VCS chips as well as the CPU.
func NewRIOT ¶
func NewRIOT(prefs *preferences.Preferences) *ChipMemory
NewRIOT is the preferred method of initialisation for the RIOT memory area.
func NewTIA ¶
func NewTIA(prefs *preferences.Preferences) *ChipMemory
NewTIA is the preferred method of initialisation for the TIA memory chip.
func (*ChipMemory) ChipRead ¶
func (area *ChipMemory) ChipRead() (bool, bus.ChipData)
ChipRead is an implementation of memory.ChipBus.
func (*ChipMemory) ChipWrite ¶
func (area *ChipMemory) ChipWrite(reg addresses.ChipRegister, data uint8)
ChipWrite is an implementation of memory.ChipBus.
func (*ChipMemory) LastReadRegister ¶
func (area *ChipMemory) LastReadRegister() string
LastReadRegister is an implementation of memory.ChipBus.
func (*ChipMemory) Peek ¶
func (area *ChipMemory) Peek(address uint16) (uint8, error)
Peek is an implementation of memory.DebugBus. Address must be normalised.
func (*ChipMemory) Poke ¶
func (area *ChipMemory) Poke(address uint16, value uint8) error
Poke is an implementation of memory.DebugBus. Address must be normalised.
func (*ChipMemory) Read ¶
func (area *ChipMemory) Read(address uint16) (uint8, error)
Read is an implementation of memory.CPUBus. Address must be normalised.
func (*ChipMemory) Reset ¶ added in v0.7.1
func (area *ChipMemory) Reset()
Reset contents of ChipMemory.
func (*ChipMemory) Snapshot ¶ added in v0.7.1
func (area *ChipMemory) Snapshot() *ChipMemory
Snapshot creates a copy of ChipMemory in its current state.
type RAM ¶
RAM represents the 128bytes of RAM in the PIA 6532 chip, found in the Atari VCS.
func NewRAM ¶
func NewRAM(prefs *preferences.Preferences) *RAM
NewRAM is the preferred method of initialisation for the RAM memory area.