On Sun, 21 Jul 2019, Programmingkid wrote:
I know Forth is big on using the stack as a place for storing variables, but could you use local variables instead? They are so much easier to follow and use than stack manipulation.
No I can't. I don't know how to do that in Forth and most of this is copy pasted from SLOF so you probably don't have to review those parts, only my changes. The string manipulation words are just copy from SLOF and I assume they would work. (Besides Segher said local variables are not a good practice in Forth.)
Basically what needs to be checked are the missing words noted in the commit message (that needs inside knowledge of OpenBIOS so probably only Mark can do) and if there are any SLOF implementation details assumed by this code that would make it not work with OpenBIOS. I guess there might be some but as I could not test it because of missing words I don't know yet. Additionally maybe if some copied words can be replaced by OpenBIOS alternatives that I haven't found yet.
Regards, BALATON Zoltan