aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/forth2012/core/buffer.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/forth2012/core/buffer.frt')
-rw-r--r--amforth-6.5/common/lib/forth2012/core/buffer.frt6
1 files changed, 6 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/forth2012/core/buffer.frt b/amforth-6.5/common/lib/forth2012/core/buffer.frt
new file mode 100644
index 0000000..10db671
--- /dev/null
+++ b/amforth-6.5/common/lib/forth2012/core/buffer.frt
@@ -0,0 +1,6 @@
+\ allocate a buffer and give it a name in the dictionary
+\ see http://www.forth200x.org/buffer.html
+
+: buffer: ( n "<spaces>name" )
+ \ variable already allocates 1 cell
+ variable 1 cells - allot ;