Updated wumpus Makefile to match other example projects.
[vvhitespace] / examples / hello-world / hello.pvvs
index 53f515f..507437e 100644 (file)
@@ -1,32 +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
-SSSTSTSN        | ST: Push +10 (ASCII '\n')
-TNSS            | IO: Output character
+A"Hello, world!\n"
+SSSSN           | ST: PUSH 0
+NSTTSSSN        | FC: JSR>1000 (printf; see stdlib)
 NNN             | FC: Terminate program
 NNN             | FC: Terminate program
+
+#include <stdio.pvvs>