Today’s learn something every day: Back implementing manual stack and memoization on systems that don’t REALLY do recursion. To help visualize loops, I started printing the status on every loop on a delay and reversing the stack pointer digit so I could follow it. #commodore

Today’s “learn something every day”: Been studying recursion implementations in modern languages like Python. Taking this back to 8 Bit machines…this is the first time I’ve ever studied implementing a manual push/pop stack pointer combined with memoization. Got a lot of uses to ponder for this. #commodore #VIC20 #python

This took me a while to figure out: All permutations of a naturally ordered string. In Python/Rust I’d use recursion, but on an 8-Bit you run out of space on the stack pretty quickly. Managed to come up with a working iterative version. Now I’ll redo it in Assembly ;-) #commodore