LC-3 virtual machine implementation in Rust
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode initial commit Jan 3, 2019
C initial commit Jan 3, 2019
src cleaned main file Jan 4, 2019
.gitignore fixed jsr instruction Jan 4, 2019
2048.obj initial commit Jan 3, 2019
Cargo.lock initial commit Jan 3, 2019
Cargo.toml initial commit Jan 3, 2019
LICENSE Initial commit Jan 3, 2019
README.md fixed jsr instruction Jan 4, 2019
TODO fixed jsr instruction Jan 4, 2019
build.rs initial commit Jan 3, 2019

README.md

LC-3_rs

LC-3 virtual machine implementation in Rust. Currently it should be able to run all programs written for LC-3 but I haven't tested it with other programs than 2048 game.

TODO

  • Get rid of all c functions and unsafe blocks
  • Better abstraction on memory

Usage

<program name> [file1] ...
Run the program with the desired .obj file as argument

Crates

Enum_primitive_derive

Allows using enums in c style

Libc

I was lazy and used some c functions to implement parts that are not related to emulation

Credits

This project followed this tutorial.