[OpenBIOS] [PATCH] interpreter.fs: allow evaluate to split words on CR as well as LF
segher at kernel.crashing.org
Sun Jun 21 10:28:41 CEST 2015
On Sun, Jun 21, 2015 at 09:08:00AM +0100, Mark Cave-Ayland wrote:
> >> So the real problem here appears to be that the OS 9 bootscript is using
> >> the rstack in order to store temporary variables. Since the Forth
> >> version of interpret is based in a loop which looks up each word in turn
> >> and then runs execute, the manipulation of the rstack with r> confuses
> >> the loop causing it to drop out early.
> > You should use a separate (software) stack for rstack things in interpret
> > mode (this is what other OF implementations do).
> Okay. Don't suppose you could point me to some examples on how to do this?
Oh, sorry. You could look at forth/lib/pseudors.fth in the OFW code.
More information about the OpenBIOS