Meanwhile qemu-system-sparc is good enough to boot most Solaris
versions with OBP.
( http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html )
I'm trying to find out what is missing in OpenBIOS to do the same.
Currently the boot just hangs.
I did a wild guess:
$ strings sun4m/ufsboot
['] find-device catch if 2drop true else current-device device-end then swap l!
It looks like all the keywords are known to the OpenBIOS, but I can't
input the test string:
" /options" ['] find-device catch if 2drop true else current-device
device-end then swap l!
it is longer than 80 characters, and OpenBIOS lets me enter only the
part of the string up to "device-end t".
The questions are:
- is it just an interactive command line limitation, or an api limitation?
- where is it defined? I couldn't find anything useful with grep -r 80 .
- is there a forth debugger in OpenBIOS?
solaris/sparc under qemu progress: http://tyom.blogspot.com/
>> Is there a word that can tell me the name of the current word that is executing?
>> I want something like this:
>> : myword
>> obtainWord would somehow return "myword". Any tips would be great.
> No, I don't think this is really possible because of the way in which
> Forth works (at least I ended up using a different solution for the
> debugger anyway).
> Is there a reason that you're not using the in-built debugger for this?
> I'm fairly sure it would make your life much easier.
I'm making code that will associate a value with a function name and will store both in a table. Thank you Mark and Stefan for helping.