Added test for all stdio.pvvs subroutines.
[vvhitespace] / stdlib_tests / 6007_printf_staticheapstring.pvvs
diff --git a/stdlib_tests/6007_printf_staticheapstring.pvvs b/stdlib_tests/6007_printf_staticheapstring.pvvs
new file mode 100644 (file)
index 0000000..5d9b7b1
--- /dev/null
@@ -0,0 +1,14 @@
+A"test"
+SSSTSSSSSN      | PUSH 32 (address)
+SSSTSSN         | PUSH 4 (count)
+NSTTTTTTN       | JSR > 11111 (spew)
+
+SSSTSSSSSN      | PUSH 32 (address)
+SSSSN           | PUSH 0 (string terminator)
+SSSSN           | PUSH 0 (number of substitutions)
+NSTTSSSN        | JSR > 1000 (printf)
+
+NNN             | DIE
+
+#include <heap.pvvs>
+#include <stdio.pvvs>