Skip to content
/ vm Public

A very simple virtual machine from tutorial video by Josh Stone (@jephthai)

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

11 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 by Josh Stone (@jephthai)

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 from tutorial video by Josh Stone (@jephthai)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published