Skip to content

mhashim6/LC3-Virtual-Machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.