aboutsummaryrefslogtreecommitdiff
path: root/forth/forth/ct-test.fs
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-09-21 21:59:17 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-09-21 21:59:17 +0200
commit2f83a0bea9da444e3d70569eba3d6847ca02be03 (patch)
tree20163bbd478f40679d22f5e964aef94c688639f0 /forth/forth/ct-test.fs
parent125127ee67891e1813164e20aa848a80b9d2f2a0 (diff)
...
Diffstat (limited to 'forth/forth/ct-test.fs')
-rw-r--r--forth/forth/ct-test.fs22
1 files changed, 22 insertions, 0 deletions
diff --git a/forth/forth/ct-test.fs b/forth/forth/ct-test.fs
new file mode 100644
index 0000000..6837d87
--- /dev/null
+++ b/forth/forth/ct-test.fs
@@ -0,0 +1,22 @@
+\ USAGE EXAMPLE
+: ?9 dup 9 = ;
+: ?6 dup 6 = ;
+: .9 ." nine" cr ;
+: .6 ." six" cr ;
+' .6 ' ?6 ' .9 ' ?9
+2 flash ct test ram
+
+\ WITH noname:
+
+:noname ." default" cr ;
+' true
+:noname ." six" cr ;
+:noname dup 6 = ;
+:noname ." nine" cr ;
+:noname dup 9 = ;
+3 flash ct testnoname
+
+6 test
+6 testnoname
+.
+.