Added tests for flow control IMP.
[vvhitespace] / tests / 4002_flowcontrol_unconditional_jump_to_label.pvvs
diff --git a/tests/4002_flowcontrol_unconditional_jump_to_label.pvvs b/tests/4002_flowcontrol_unconditional_jump_to_label.pvvs
new file mode 100644 (file)
index 0000000..8e0e6d9
--- /dev/null
@@ -0,0 +1,9 @@
+# This test verifies the flow control IMP for marking labels and
+# unconditionally jumping to them..
+
+SSSTSSSSSTN     | ST: Push +65 (ASCII A)
+NSNTSTSTSN      | FC: Unconditional jump -> '42'
+NNN             | FC: Terminate program
+NSSVTSTSTSN     | FC: Mark label '42'
+TNSS            | IO: Output character
+NNN             | FC: Terminate program