Skip to content

Latest commit

 

History

History
41 lines (37 loc) · 1.18 KB

README.md

File metadata and controls

41 lines (37 loc) · 1.18 KB

LC-3 Virtual Machine

Little Computer 3, or LC-3, is a type of computer educational programming language, an assembly language, which is a type of low-level programming language. This is a Python implementation of the LC-3 virtual machine.

Architecture

Instructions

  • Branch
  • Add
  • Load
  • Store
  • Jump register
  • Bitwise AND
  • Load register
  • Store register
  • Bitwise NOT
  • Load indirect
  • Store indirect
  • Jump
  • Reserved
  • Load effective address

I/O

  • Memory-mapped registers [Unix only.]

Traps

  • Get character from keyboard "without echod"
  • Output a character
  • Output a word string
  • Input a string "With echod"
  • Output a byte string
  • Halt

Creadits/Inspirations

Requirements

No dependencies, just Python3.

License

This project is licensed under the MIT License.