summaryrefslogtreecommitdiff
path: root/jefs.fs
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-02-16 18:27:52 +1100
committerkitty <nepeta@canaglie.net>2026-02-16 18:27:52 +1100
commit660a99ca247cea4f9de3e5b6744728dd385a9494 (patch)
tree260e3387604b9a0508d07257a90f6722e6b9a973 /jefs.fs
parent2859f3e9c65bccde64d9b41c60e61c2fff13f9d9 (diff)
+! -! allot
Diffstat (limited to 'jefs.fs')
-rw-r--r--jefs.fs4
1 files changed, 3 insertions, 1 deletions
diff --git a/jefs.fs b/jefs.fs
index 2f262f6..b4e2624 100644
--- a/jefs.fs
+++ b/jefs.fs
@@ -1,6 +1,9 @@
: decimal 10 base ! ;
: hex 16 base ! ;
+: cells 8 * ;
+: allot here @ swap here +! ;
+
: [compile] parse find drop >cfa compile, ; immediate
: ' parse find drop >cfa [compile] lit ; immediate \ note: no error handling (yet)
@@ -9,7 +12,6 @@
: if 0branch here @ 0 d, ; immediate ( I: -- a )
: then dup here @ swap - 4 - swap d! ; immediate
-: cells 8 * ;
: cell+ 8 + ;
: / /mod swap drop ;
: mod /mod drop ;