summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-02-21 00:51:22 +1100
committerkitty <nepeta@canaglie.net>2026-02-21 00:51:22 +1100
commit734c5c4430d488fc78dca791643ac6f1431c24c1 (patch)
tree9180fcd06b5622e51931b6aa4f70689cacff0ae7
parentd5757bd85c97dafd245875ea9216f4f35a5d9790 (diff)
.r, fix stack leak
i forgot i yoinked my ALLOT from jonesforth which returns a value. may change this but it would require a few rewrites so eh
-rw-r--r--jefs.fs6
1 files changed, 3 insertions, 3 deletions
diff --git a/jefs.fs b/jefs.fs
index f53f219..2bfbcfb 100644
--- a/jefs.fs
+++ b/jefs.fs
@@ -56,7 +56,8 @@ decimal
\ PNO
\ mostly from pforth
-255 allot variable pad
+
+255 allot variable pad drop
variable hld
: <# pad hld ! ;
: hold 1 hld -! ( chr ) hld @ c! ;
@@ -70,8 +71,7 @@ variable hld
: u.r >r (u.) r> over - spaces say ;
: (.) dup abs <# #s swap sign #> ;
: . (.) say space ;
+: .r >r (.) r> over - spaces say ;
\ TODO something is leaking its stack (a word address i think)
-15 10 u.r
-t
bye