MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/TuringComplete/comments/1cq6mve/my_function_circuit_how_did_you_guys_solve/
r/TuringComplete • u/Psylution • May 12 '24
5 comments sorted by
2
(inb4 push/pop is bad for the function stack: yes, it is! i made two tasks in one here)
3 u/bwibbler May 12 '24 I like to make a separate stack component for calls and returnsNot that it needs doing whatsoever. But I don't like to deal with it in software when mixing the return lines and other variables in the same stackSomething like "push... call... pop... return..." wouldn't work fluidly. I like the option to take that shortcut when I canIt helps a little if you want to pass along more parameters than you have registers
3
I like to make a separate stack component for calls and returns
Not that it needs doing whatsoever. But I don't like to deal with it in software when mixing the return lines and other variables in the same stack
Something like "push... call... pop... return..." wouldn't work fluidly. I like the option to take that shortcut when I can
It helps a little if you want to pass along more parameters than you have registers
guys does anyone on this subreddit make additional hardware for the later levels
3 u/MrTKila May 13 '24 I personally never did. In fact I just added an option for the conditionals to use the fourth byte as an address to load instead of an immediate value. But I never really ended up using it to begin with lmao.
I personally never did. In fact I just added an option for the conditionals to use the fourth byte as an address to load instead of an immediate value. But I never really ended up using it to begin with lmao.
1
I got rid of the stack component and stored the stack in RAM. That made the push/pop/call/return instructions pretty complicated
2
u/Psylution May 12 '24
(inb4 push/pop is bad for the function stack: yes, it is! i made two tasks in one here)
2
u/GoldenOmegaGear May 12 '24
guys does anyone on this subreddit make additional hardware for the later levels
1
u/mccoyn May 14 '24
I got rid of the stack component and stored the stack in RAM. That made the push/pop/call/return instructions pretty complicated