X-Git-Url: http://git.subgeniuskitty.com/vvhitespace/.git/blobdiff_plain/68f56a54a3104a2d2872f89030198b5e128fec16..1e5085fe00bea0f85fa7195a997dae86ca02ade0:/examples/hello-world/hello.pvvs diff --git a/examples/hello-world/hello.pvvs b/examples/hello-world/hello.pvvs index 145fe1c..507437e 100644 --- a/examples/hello-world/hello.pvvs +++ b/examples/hello-world/hello.pvvs @@ -1,30 +1,8 @@ -## This program outputs "Hello, world!" -## It was copied from Wikipedia. +@@ This program outputs "Hello, world!" -SSSTSSTSSSN | ST: Push +72 (ASCII H) -TNSS | IO: Output character -SSSTTSSTSTN | ST: Push +101 (ASCII e) -TNSS | IO: Output character -SSSTTSTTSSN | ST: Push +108 (ASCII l) -TNSS | IO: Output character -SSSTTSTTSSN | ST: Push +108 (ASCII l) -TNSS | IO: Output character -SSSTTSTTTTN | ST: Push +111 (ASCII o) -TNSS | IO: Output character -SSSTSTTSSN | ST: Push +44 (ASCII ,) -TNSS | IO: Output character -SSSTSSSSSN | ST: Push +32 (ASCII space) -TNSS | IO: Output character -SSSTTTSTTTN | ST: Push +119 (ASCII w) -TNSS | IO: Output character -SSSTTSTTTTN | ST: Push +111 (ASCII o) -TNSS | IO: Output character -SSSTTTSSTSN | ST: Push +114 (ASCII r) -TNSS | IO: Output character -SSSTTSTTSSN | ST: Push +108 (ASCII l) -TNSS | IO: Output character -SSSTTSSTSSN | ST: Push +100 (ASCII d) -TNSS | IO: Output character -SSSTSSSSTN | ST: Push +33 (ASCII !) -TNSS | IO: Output character +A"Hello, world!\n" +SSSSN | ST: PUSH 0 +NSTTSSSN | FC: JSR>1000 (printf; see stdlib) NNN | FC: Terminate program + +#include