[OpenBIOS] C bindings
Samuel Rydh
samuel at ibrium.se
Thu Oct 30 23:56:56 CET 2003
On Thu, Oct 30, 2003 at 10:15:12PM +0100, Stefan Reinauer wrote:
> * Samuel Rydh <samuel at ibrium.se> [031030 17:16]:
> > Great! I'm trying to make it simple to track the latest openbios
> > source so I'm avoiding MOL specific modifications whenever
> > possible...
>
> I checked this into CVS, so it will be part of BeginAgain 1.2
>
> > Well, I don't need concurrent instances, just recursive.
> > enterforth() seems to be able to handle that. What I need though
> > is runtime translation of C-string forth into tokens. I.e. basically
> > I need to do the same stuff as interpret does. I will look into it;
>
> Ok, I wrote a little example which can be used as a plugin i.e. with:
> ~/openbios/kernel/obj-x86> ./unix openfirmware.dict -P . -p mol
>
> The C function calls the interpreter giving it the string in
> forthcode[]. It's the same thing as typing the following on the
> interpreter:
> ." This is a forth statement" cr 23 dup
>
Thanks a lot.
/Samuel
More information about the OpenBIOS
mailing list