summaryrefslogtreecommitdiff
path: root/test.prn
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-09-12 08:25:21 +0200
committertomsmeding <hallo@tomsmeding.nl>2015-09-12 08:51:53 +0200
commitcff41b52e0f801eede5428d97686661b95b9756a (patch)
treef2b77e0058378d4c269d344dbb8c34979d3d82d1 /test.prn
parent78a145a5bb77b73f5fbefb0efa2d188926eb55ef (diff)
Fix `roll` and add its more general cousin `rotate`
Diffstat (limited to 'test.prn')
-rw-r--r--test.prn17
1 files changed, 17 insertions, 0 deletions
diff --git a/test.prn b/test.prn
index 65549f9..ee29b6e 100644
--- a/test.prn
+++ b/test.prn
@@ -20,3 +20,20 @@ end
42 "vv" store
vv print lf
+
+pop
+
+1 2 3 4 5 6 stackdump
+4 1 rotate stackdump
+4 1 rotate stackdump
+4 1 rotate stackdump
+4 1 rotate stackdump
+5 2 rotate stackdump
+5 -2 rotate stackdump
+lf
+6 -1 rotate stackdump
+6 5 rotate stackdump
+-1 roll stackdump
+6 1 rotate stackdump
+6 7 rotate stackdump
+1 roll stackdump