diff --git a/README.md b/README.md index 0f14c2b..62c6bfd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # vvm.rs An implementation of [VVM](https://github.com/hellerve/vvm) in Rust. -It's hacky, it's ugly, it works. + +It's my first substantial program in Rust and it looks like crap. +It also doesn't work yet, because I screwed up a bit of the call/ret +logic. diff --git a/examples/helloworld b/examples/helloworld new file mode 100644 index 0000000..0ea4c7e --- /dev/null +++ b/examples/helloworld @@ -0,0 +1,31 @@ +CONST 72 +PRINT +CONST 101 +PRINT +CONST 108 +PRINT +CONST 108 +PRINT +CONST 111 +PRINT +CONST 44 +PRINT +CONST 32 +PRINT +CONST 119 +PRINT +CONST 111 +PRINT +CONST 114 +PRINT +CONST 108 +PRINT +CONST 100 +PRINT +CONST 33 +GSTORE 0 +GLOAD 0 +PRINT +CONST 10 +PRINT +HALT