wlvm 0.1.0

Simple virtual machine with associated language written in Rust
1
2
3
4
5
6
7
8
; Code that adds two numbers
psh 5 ; Push 5 on the stack
mov a st ; Move the top of the stack to register a
psh 6 ; Push 6 to the stack
mov b st ; Move the top of the stack to register b
add a b ; Add the value of register b to register a
drg a ; Show the value of register a
hlt ; end program