Skip to content

vardivm/vardi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vārdi

vārdi ('words' in Latvian) is a 0-operand stack-based virtual machine using an 8-bit opcode format. I haven't used Ruby much lately so this will do as a bit of practice.

I know so very little about this so I thought it'd be a fun exercise.

run

  • Download the project using git clone
  • chmod +x vm.rb
  • ./vm.rb examples/helloworld.ex

examples/

  • helloworld.ex - the classic
  • iswp.ex - demonstration of swap
  • calls.ex - demonstration of calls
  • loop.ex - a simple loop
  • memory.ex - how to use the built-in memory (IN PROGRESS)
  • while_loop.ex - a while loop

About

The (original) Ruby implementation of the Vardi VM. An 8-bit stack VM with 64 KiB of memory. Maintainer @chrysophylax

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages