Adding a 'Hello, World!' example using stdlib and a new build
[vvhitespace] / examples / hello-stdlib / hello.pvvs
CommitLineData
8bed3ccd 1@@ This program outputs "Hello, world!"
c9d5be09 2
68f56a54
AT
3SSSSN | ST: Push +0 (ASCII '\0')
4SSSTSSSSTN | ST: Push +33 (ASCII !)
5SSSTTSSTSSN | ST: Push +100 (ASCII d)
c9d5be09 6SSSTTSTTSSN | ST: Push +108 (ASCII l)
68f56a54 7SSSTTTSSTSN | ST: Push +114 (ASCII r)
c9d5be09 8SSSTTSTTTTN | ST: Push +111 (ASCII o)
c9d5be09 9SSSTTTSTTTN | ST: Push +119 (ASCII w)
68f56a54
AT
10SSSTSSSSSN | ST: Push +32 (ASCII space)
11SSSTSTTSSN | ST: Push +44 (ASCII ,)
c9d5be09 12SSSTTSTTTTN | ST: Push +111 (ASCII o)
c9d5be09 13SSSTTSTTSSN | ST: Push +108 (ASCII l)
68f56a54
AT
14SSSTTSTTSSN | ST: Push +108 (ASCII l)
15SSSTTSSTSTN | ST: Push +101 (ASCII e)
16SSSTSSTSSSN | ST: Push +72 (ASCII H)
17NSTTSSSN | FC: JSR>1000 (print string from stack; see stdlib)
c9d5be09 18NNN | FC: Terminate program
8bed3ccd
AT
19
20#include "stdio.pvvs"