projects
/
vvhitespace
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added tests for flow control IMP.
[vvhitespace]
/
tests
/
4006_flowcontrol_return_from_subroutine.pvvs
diff --git a/tests/4006_flowcontrol_return_from_subroutine.pvvs
b/tests/4006_flowcontrol_return_from_subroutine.pvvs
new file mode 100644
(file)
index 0000000..
749ca17
--- /dev/null
+++ b/
tests/4006_flowcontrol_return_from_subroutine.pvvs
@@ -0,0
+1,8
@@
+# This test verifies the flow control IMP rts.
+
+NSTTSTSTSN | FC: JSR -> '42'
+TNSS | IO: Output character
+NNN | FC: Terminate program
+NSSVTSTSTSN | FC: Mark label '42'
+SSSTSSSSSTN | ST: Push +65 (ASCII A)
+NTN | FC: RTS