X-Git-Url: http://git.subgeniuskitty.com/vvhitespace/.git/blobdiff_plain/0425a4c688d837e65ccbece82a8987ac41dcee3f..b8b65c17f7c4cfbe7f1d2f6b76580d40afe51526:/examples/hello-stdlib/hello.pvvs diff --git a/examples/hello-stdlib/hello.pvvs b/examples/hello-stdlib/hello.pvvs index 3b28850..a70ebff 100644 --- a/examples/hello-stdlib/hello.pvvs +++ b/examples/hello-stdlib/hello.pvvs @@ -1,21 +1,8 @@ @@ This program outputs "Hello, world!" -SSSSN | ST: Push +0 (ASCII '\0') -SSSTSTSN | ST: Push +10 (ASCII '\n') -SSSTSSSSTN | ST: Push +33 (ASCII !) -SSSTTSSTSSN | ST: Push +100 (ASCII d) -SSSTTSTTSSN | ST: Push +108 (ASCII l) -SSSTTTSSTSN | ST: Push +114 (ASCII r) -SSSTTSTTTTN | ST: Push +111 (ASCII o) -SSSTTTSTTTN | ST: Push +119 (ASCII w) -SSSTSSSSSN | ST: Push +32 (ASCII space) -SSSTSTTSSN | ST: Push +44 (ASCII ,) -SSSTTSTTTTN | ST: Push +111 (ASCII o) -SSSTTSTTSSN | ST: Push +108 (ASCII l) -SSSTTSTTSSN | ST: Push +108 (ASCII l) -SSSTTSSTSTN | ST: Push +101 (ASCII e) -SSSTSSTSSSN | ST: Push +72 (ASCII H) -NSTTSSSN | FC: JSR>1000 (print string from stack; see stdlib) +A"Hello, world!\n" +@TODO: Change this to printf call +NSTTSSSTSSN | FC: JSR>1000100 (print string from stack; see stdlib) NNN | FC: Terminate program #include "stdio.pvvs"