Skip to main content

Crate devices6502

Crate devices6502 

Source
Expand description

§devices6502

A crate providing implementations of various memory-mapped devices for 6502-based systems.

This crate includes common device types that can be used to build memory maps for 6502 emulators or similar projects. It provides:

  • Ram: Random Access Memory implementation
  • Rom: Read Only Memory implementation
  • Mirror: Memory mirroring functionality
  • Socket: A device that can be hot-swapped at runtime (requires alloc feature)
  • Adjacent: Helper for combining multiple devices
  • ReadWrite: A device that routes read and write operations to different devices
  • Device: Trait defining common device behavior

All devices implement the Device trait which provides a consistent interface for memory operations.

Modules§

size_const
Common memory size constants for device configuration.

Structs§

Adjacent
Combines two devices of equal size into a single contiguous address space.
Mirror
A device that mirrors another device N times in the address space.
Ram
A Random Access Memory device implementation.
ReadWrite
A device that routes read and write operations to different underlying devices.
Rom
A Read Only Memory device implementation.
Socket
A socket that can hold a device and allows hot-swapping at runtime.

Constants§

SIZE_1K
SIZE_2K
SIZE_4K
SIZE_8K
SIZE_16K
SIZE_32K
SIZE_64K
SIZE_128K
SIZE_256K

Traits§

Device
Trait for memory-mapped devices in a 6502 system.