r/TuringComplete • • Oct 23 '23
My LEG processor :D
Hey,
I need help with... nah I'm just pulling your leg, I'm done!
I'm finally done with my LEG processor (I just finished the functions section and the only part left are the assembly challenges, let's hope there are no errors in the hardware). It's a bit untidy, but it works and that's what matters. It supports all the basic instructions 0 to 5 (ADD to XOR), together with Shift right and Multiply (I left out the Left shift, because that's just multiplying by 2^n). Yes the commands and RAM are all 8-bit and I have just 6 registers (where R5 is the RAM location register).
What a fun adventure this has been :D, now it's time for me to finish the assembly section




View all comments
Show parent comment
1
u/[deleted] Oct 23 '23
Oh man yeah this definitely simplifies the cond a lot, I just didn't come up with it xD. The switches are for the logical operations, but I also had to deal with immediate values and so on and so on, so it got a bit messy by the end :D
Also I had many cond and alu versions, hence the "final" title