Module lc3_ensemble::sim::io

source ·
Expand description

IO handling for LC-3.

The interface for IO devices is defined with the IODevice trait. This is exposed to the simulator with the SimIO enum.

Besides those two key items, this module also includes:

  • EmptyIO: An IODevice holding the implementation for a lack of IO support.
  • BufferedIO: An IODevice holding a buffered implementation for IO.
  • BiChannelIO: An IODevice holding a threaded/channel implementation for IO.
  • CustomIO: An IODevice that can be used to wrap around custom IO implementations.

Structs§

  • An IO that reads from one channel and writes to another.
  • IO that reads from an input buffer and writes to an output buffer.
  • An opaque box that holds custom defined IO.
  • No IO. All reads and writes are unsuccessful.

Enums§

  • All the variants of IO accepted by the Simulator.

Traits§

  • An IO device that can be read/written to.