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