3 ms·
In case it's new to anyone, I recommend going through the jones forth "literate program" - even if you don't understand assembly. You can try porting it to a la
by version_five 4y ago
In case it's new to anyone, I recommend going through the jones forth "literate program" - even if you don't understand assembly. You can try porting it to a language you know, it gives a good understanding of how forth works
https://github.com/nornagon/jonesforth/blob/master/jonesforth.S https://github.com/nornagon/jonesforth/blob/master/jonesfort...
- messe 4y agoOh, nice, Jones forth! I second the recommendation to read through it. I ported this to ARM assembly years ago, and it was a lot of fun. No idea where that program is now, unfortunately. Now that I'm using Apple Silicon day to day, maybe it's time I try rewriting it for ARM64.
- golem14 4y agoIt gets hard when you discover that apple has mostly disallowed self modifying code on their arm architecture. You can, with lots of hoops, but a straightforward assembler in forth becomes all but impossible.
- bitexploder 4y agoAlso just learn assembly. The basics take a half hour to grasp if you have any exposure to programming :)
- Nadya 4y agoAnd make it a fun ASM. Like 6502 [0]. [0] https://skilldrick.github.io/easy6502/ https://skilldrick.github.io/easy6502/
- bitexploder 4y agoMy favorite learning assembly. It all mostly applies to every other Von Neumann machine too.
- rwmj 4y agoThere are at least 2 ports to C that I'm aware of. Here's the older one: http://www.dst-corp.com/james/JonesForthInC-V148.html http://www.dst-corp.com/james/JonesForthInC-V148.html