Skip to content
/ vm Public

A very simple virtual machine (for educational purposes)

Notifications You must be signed in to change notification settings

iri/vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vm

A very simple bytecode virtual machine for educational purposes. It is able to print a text on the screen. The VM is implemented from this tutorial video - https://www.youtube.com/watch?v=DUNkdl0Jhgs

Implemented VM commands:

  • 'c'<x> - put a byte <x> to the stack
  • 'e' - take a top byte from the stack and print it on the screen
  • 'h' - halt the program

Demo program hello.vm prints out a text Hello world!

Build

    make

Run

    ./vm hello.vm
    Hello world!

About

A very simple virtual machine (for educational purposes)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published