On Apr 18, 2016, at 11:27 PM, Segher Boessenkool wrote:
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".
Ok. I see now.
- 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.
I don't know why executing one line at a time would make any difference, I will entertain your idea.