[OpenBIOS] [PATCH] libopenbios/bootinfo_load.c: Implement Mac OS 9.2 boot script support

Programmingkid programmingkidx at gmail.com
Tue Apr 26 22:27:25 CEST 2016

On Apr 26, 2016, at 4:11 PM, BALATON Zoltan wrote:

> On Tue, 26 Apr 2016, Programmingkid wrote:
>> This patch makes booting Mac OS 9.2 possible. It replaces all occurrences of
>> >r and r> with sub_>r and sub_r>. This allows for the return stack to be left
>> alone.
> Can we have Segher's Forth version of this instead:
> https://www.coreboot.org/pipermail/openbios/2016-April/009338.html
> That should be equivalent and would make the C code much simpler and allow dropping most of these patches.

Which file should I implement these words in?

>> This patch also makes it so that the boot script is executed one line at a time.
> This part below would be basically all that remains. Is this also equivalent to the previous patch to interpreter.fs for also handling \r the same as \n or does it do something else? If not then maybe the whole thing could be done in Forth entirely.

It does break up the script so that only one line is sent to feval() at a time.

More information about the OpenBIOS mailing list