[OpenBIOS] [PATCH] interpreter.fs: allow evaluate to split words on CR as well as LF

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Jun 21 10:49:03 CEST 2015


On 21/06/15 09:28, Segher Boessenkool wrote:

> 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.

That's interesting. It looks like the above implementation allows
different compile behaviour compared to OpenBIOS which always executes
the underlying C function, regardless of what mode we are in.


ATB,

Mark.




More information about the OpenBIOS mailing list