Skip to content
/ lvm3 Public

Lightweight LC-3 virtual machine.

License

Notifications You must be signed in to change notification settings

smercer10/lvm3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LVM-3

LVM-3 is a virtual machine (VM) that implements the LC-3 architecture and can be used to run LC-3 programs on modern computers. The VM currently only supports Linux, but it can be easily ported to other operating systems with minor API changes.

MIT License GitHub Actions Workflow Status

Usage

lvm3 <path to program file>

The VM expects files that have been written in LC-3 assembly and preassembled into machine code. Two examples have been provided in the programs directory (credit to Ryan Pendleton and Justin Meiners).

Build Locally

Prerequisites

  • Linux
  • Zig nightly build

Commands

  • Build the executable:
zig build
  • Build and run the executable:
zig build run -- <path to program file>
  • Run the tests:
zig build test