chungquantin / lc3-vm

little computer 3 (lc3) virtual machine written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Little Computer 3 (LC3) Virtual Machine (by @lowlevelers)

What is Little Computer 3?

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.

It features a relatively simple instruction set but can be used to write moderately complex assembly programs, and is a viable target for a C compiler. The language is less complex than x86 assembly but has many features similar to those in more complex languages.

Experiment

This project is a Little Computer 3 virtual machine written in Rust programming language. It follows the online guide from Write your Own Machine by Justin Meiners and Ryan Pendleton. The virtual machine components are organized as below:

Filename Description
main.rs Program entry point for image loader and simple CLI implementation
cpu.rs Implementation of a virtual CPU or virtual machine
instruction.rs Declaration of the enumeration of instructions
trap.rs Declaration of the enumeration of trap routine
register.rs Registers and conditional flags
constant.rs Constants

Reference

About

little computer 3 (lc3) virtual machine written in Rust


Languages

Language:Rust 100.0%