From 3cdbec3aeaee0a6c3dc21c97cd464400bff9d9af Mon Sep 17 00:00:00 2001 From: hellerve Date: Sun, 4 Jun 2017 22:44:06 -0400 Subject: [PATCH] initial public release --- README.md | 5 ++++- examples/helloworld | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 examples/helloworld 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