gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gforth] what is the opposite of allot?


From: Jay Pinkman
Subject: [gforth] what is the opposite of allot?
Date: Sat, 26 Oct 2013 23:09:02 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

i'm trying to build a stack inside the dictionary. here's how:

0 value         cache
4096 constant   #cache

: commit        cache , ;
: revert        cache cell - @ cp ! ;
: buffer        here to cache #cache allot ;

: cache{        commit buffer ;
: }cache        revert buffer ;

this code won't work because gforth doesn't recognize cp as a defined
word. i tried to use markers but it didn't pan out. i'm relatively new
to both forth and gforth so maybe i'm missing something obvious.

jay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]