aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/forth2012/core/count.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/forth2012/core/count.frt')
-rw-r--r--amforth-6.5/common/lib/forth2012/core/count.frt3
1 files changed, 3 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/forth2012/core/count.frt b/amforth-6.5/common/lib/forth2012/core/count.frt
new file mode 100644
index 0000000..339da65
--- /dev/null
+++ b/amforth-6.5/common/lib/forth2012/core/count.frt
@@ -0,0 +1,3 @@
+
+\ ( addr -- addr+1 len )
+: count dup 1+ swap c@ ;