Skip to content

jackwherry/lc3vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lc3vm

LC-3 virtual machine and interactive debugger

image

This project emulates the LC-3 instruction set. In addition, it lets you single-step through instructions, inspect memory at any location, pause the running emulator with Ctrl-C, and more. When you step forward in the single-step mode, you'll see how each instruction was interpreted and what changes it made to the memory and registers. I used the linenoise library to support command editing with history, so you won't be frustrated by ^[[A everywhere.

Building

Compile this project as you would any other C project on your system. A Makefile is included, but it may not work for you. If you're on Windows, you'll likely need MinGW or similar.

Acknowledgements

Opcode explanations and implementations courtesy of this blog post.

About

LC-3 virtual machine and interactive debugger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published