[OpenBIOS] Found out why replacing '\r' with '\n' works
Segher Boessenkool
segher at kernel.crashing.org
Tue Apr 19 05:27:57 CEST 2016
On Mon, Apr 18, 2016 at 11:21:51PM -0400, Programmingkid wrote:
> >> With my patch I saw mostly the same thing except there was also a message that said "this image is not for this platform". I think this proves that the '\r' to '\n' patch is needed.
> >
> > [ long lines ]
> >
> > You need at least four things:
> > - You need to EVALUATE the boot script per line, not as one string;
> How do you decide when to end a line?
When there is an end-of-line character, or you reach the end of the script.
> > - CARRET should indeed be treated as end-of-line, for that;
> Do you mean ^ ? I don't remember any carret characters in the script.
That is a caret. CARRET is an OF word, it is the ASCII 13 character.
"Carriage return".
> > - Return stack in interpret mode;
> > - Structure words in interpret mode. That is at least
> >
> > AHEAD IF THEN BEGIN AGAIN UNTIL CASE ENDCASE DO ?DO LOOP +LOOP
>
> I think it would be easier if I was sent a patch. The forth code for Mac OS 9.2 is located in a file called "Mac OS ROM". Just let me know if you need help obtaining this file.
[ long lines ]
Thanks, but no, of course I have it.
Segher
More information about the OpenBIOS
mailing list