Skip to content

A LC3 virtual machine implementation in a few lines of C code

Notifications You must be signed in to change notification settings

nomemory/lc3-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lc3-vm

Blog article:

https://www.andreinc.net/2021/12/01/writing-a-simple-vm-in-less-than-125-lines-of-c

A LC3 virtual machine implementation in a few lines of C code.

Code is experimental. Things are not final.

The machine should be able to run simple LC3 programs.

Compile the sample program:

gcc -Wall -std=c11 simple_program.c

Compile the vm:

gcc -Wall -std=c11 vm.c vm_dbg.c

Run the program:

./a.out simple_program.obj

About

A LC3 virtual machine implementation in a few lines of C code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages