How faresbakhit/lc3-vm works
Component Relationships
[Input Files] → [Image Loader] → [Memory System]
• ↕
[User Input] → [I/O System] ←→ [Core Execution Unit] ←→ [Register System]
• ↕
• [Instruction Decoder]
• ↕
• [Condition Codes Handler]
Detailed Component Specifications
• Rounded rectangles for I/O and external interfaces
• Hexagons for processing units (Core Execution Unit)
• Diamonds for decision points (Condition Codes)
Implementation Details
Memory System (memory.rs):
• 65,536 memory locations (16-bit addressing)
• Memory-mapped registers
• Memory read/write operations
Instruction Processing:
• Decode unit (decode.rs)
• Opcode handling (opcode.rs)
• Condition codes (condcodes.rs)
• Trap code handling (trapcode.rs)
I/O System (io.rs):
• Terminal I/O handling
• Device interaction
• Custom termios implementation
Technical Details
A technical specifications section showing:
• 16-bit architecture
• Memory size
• Register set
• Supported instruction set