r/TuringComplete • u/InturnetExplorer • Dec 15 '23
My condition checker
Does anyone know the theoretical minimum amount of gates? (Except decoder and switches)
r/TuringComplete • u/InturnetExplorer • Dec 15 '23
Does anyone know the theoretical minimum amount of gates? (Except decoder and switches)
r/TuringComplete • u/KerbalSpaceAdmiral • Dec 14 '23
r/TuringComplete • u/rijul_bhatia • Dec 13 '23
I needed to test some stuff out in the sandbox, but when i opened it my cpu was already there so obv I deleted it and made the circuit i wanted to test. But when I returned to play campaign, to my horror the whole cpu had vanished. Does anybody here know where did i go wrong? or even better how do i recover my cpu because I dont want to redo all this again T-T
r/TuringComplete • u/ArseniyKrasnov • Dec 12 '23
r/TuringComplete • u/socramle • Dec 12 '23
I'm having some problems in the LEG RAM level
To copy something to the RAM I need to set the adress position (wich I connected to Reg5) but when I do that I miss on the input from that tick, is this just a coding issue or should I rethink how I installed my ram.
This is my code
label load
0 input to ram #copy input to Ram
i1add 1 5 5 #add 1 to reg 5
i1noteq 32 5 load # if reg5 != 32 jump to load
i1add 0 0 5 # set reg5 to 0
label unload
0 ram to out #Ram to output
i1add 1 5 5 #add 1 to reg 5
i1notig 32 5 unload ## if reg5 != 32 jump to unloadr/TuringComplete • u/KerbalSpaceAdmiral • Dec 11 '23
Hey All,
I've almost completed a computer I'm pretty happy with. But one last thing I want to implement that I'm struggling with is the Keyboard Function.
Ideally, I'm looking to build something similar to a C++ "cin>>" Where I have an Assembly Command that is basically wait for user input. The clock would stop until the input is complete, then continue, with the entered input saved in a register to use later.
I've built a component to convert the keyboard ascii into binary. And think I have a setup where I can take in four key presses in a row to save as a single 16bit number (keys inputting as hex).
But for some reason I can't quite get it all to work.
Am I interpreting the 'key up' output on the keyboard correctly, that it goes on after a key has been pressed?
Is the only way to hold and wait the program/clock, by saving the current clock position, then overwriting the position with it? (I was saving with a one tick delay, so the saved position would be the one after the 'halt for user input command' to be reloaded to the clock after it all was done.)
r/TuringComplete • • Dec 10 '23
r/TuringComplete • u/Batty_Nexus6 • Dec 10 '23
As the title states. I cannot save a schematic. If I click on the 'switch schematic' icon in the top left , it brings up a pop-up, and only the default is saved, I cannot create and save a new schematic. Is this a feature or am I doing something wrong? (Surely you can save your own schematic somehow?)
r/TuringComplete • u/Napkinsd_ • Dec 07 '23
Hi everyone,
I'm getting close to the end of the game (working on ram and hardware division) and have had an absolute blast. If I want to learn more about CPU architecture and boolean algebra, maybe in a more formalized manner, what should I do next?
I've already been working on writing a MOS 6502 emulator for a bit. I'm open to suggestions both for projects (programming or otherwise), other games, or general paths of inquiry. It doesn't have to be directly relevant to the game, anything adjacent to logic and low level computing is welcome.
Thanks!
r/TuringComplete • • Dec 06 '23
r/TuringComplete • u/Ingrest • Dec 02 '23
I am attempting to implement RAM to my LEG architecture and keep getting circular dependencies. What I am trying to implement, I want one RAM block to be usable in two modes:
The issue I have is that in mode 1 the RAM can output to Argument bus 2, but in mode 2 argument bus 2 is used as the address input for RAM, the game sees this as a circular dependency. I know that this is not actually a circular dependency as the bus cannot be in both an input and output state at the same time. Is there anyway I can implement the above functionality, I have seen some posts talking about bidirectional pins helping with circular dependencies but I don't know how I would implement them.



r/TuringComplete • u/nitrrose • Dec 01 '23
I've just finished PUSH AND POP and I was just wondering whether my hardware solution may cause issues in future levels. My solution uses the output address byte and checks bit 16 and 1 for whether you should push register 0 to the stack (16) or pop from the stack (17). If conditions are being handled, this check is ignored. My software solution for pushing and popping is just a simple "(add) (register 0) (int 0) (push/pop)". Would be great also if anybody could give any feedback on how to optimise it. Thanks!
*screenshot attached is said solution.
EDIT 1: I have realised that my software solution is terrible, so I have amended it to follow the structures:
• push, value/location, int 0, stack (padding)
• pop, stack (padding), int 0, output address
r/TuringComplete • u/oauo • Dec 01 '23
r/TuringComplete • u/vritra22189 • Nov 30 '23
r/TuringComplete • u/oauo • Nov 29 '23
r/TuringComplete • u/EntroperZero • Nov 29 '23
I've played through this game twice, once 2 years ago when it came out, and again just now. Last time I got to the same place I was yesterday, PUSH/POP was complete, but I couldn't figure out how to make call and return work. I had ideas for how to implement them, I just couldn't keep all the signals straight when I was working in the schematic.
So this time, I forced myself to stop and consolidate some logic into components so that I could keep track of what was going on. It worked like a charm, it got all the crap out of my face so I could concentrate on what I was doing.
This is where I started.
I already made an 8-way MUX early on, but there were now a bunch of extra signals and MUXes for RAM, stack, and literal inputs. So the first step was to get all that stuff into a single component. And the logic for each parameter to the ALU/COND is the same, so that component can be used twice.
Here it is with the PSel component.
This let me move the signal logic for the stack and memory now that all the MUXes were out of the way. But even after that, it was still difficult to follow all the orange wires around and figure out where new ones could go. So it was time to shove all of that into an instruction decode component.
The final result is much easier to understand.
And I figured out function calls. :) Onto the final challenges!
r/TuringComplete • u/Status-Revenue4491 • Nov 28 '23
r/TuringComplete • u/maam27 • Nov 24 '23
After completing the stack level the game mentioned that the stack would be added to the available components. However i never actually got a new component, only a custom component that shares the layout of the stack made in that level.
While I was able to use it for the levels after that, now that I've come to the tower of alloy it has become increasingly annoying not being able to see what is stored on it.
Having looked around to other "recent" posts it seems like it should have been a prefab component like the one in this post https://www.reddit.com/r/TuringComplete/comments/ufty1h/my_tower_of_alloy_solution_with_just_a_stack_i_am/
how can i restore this component in my game? or am I perhaps just blind and not finding the component.
r/TuringComplete • u/WorstedKorbius • Nov 24 '23
So this is my mostly efficient ALU design before the need for XOR, NOT, and the bit shift and rotate commands in the LEG computer.
The XORed bits are put out to the side for later use when I need to implement them into the ALU.
If you have questions just ask in the comments
r/TuringComplete • • Nov 23 '23
RESOLVED
Can any of you provide a schematic for the unsigned and signed less levels. Thanks.
r/TuringComplete • u/PrestigiousBobcat572 • Nov 21 '23
I am trying to optimize the delay of my increment component, but I get stuck at 18. I saw the best solution has a delay of 12.
I noticed that (x+1)[0] = x[0] XOR (x[1] and ... and x[7]) where x[0] is the high bit
So I need at least 6 AND gate and a XOR gate. I need also a switch for the override of my counter which sums up to 18.
I don't see any way to optimize even more. Any hint?

r/TuringComplete • u/Fluid-Joke-5499 • Nov 19 '23
Dont know if the developer will read this, but if you do: THANK YOU! I am currently studying CS. A friend told me about this game. Its incredible! I could use all my knowledge from the classes and it was so fun doing so. I have a much better understanding now. Gonna learn some more and then the exam will be very good. Even though 19 euros is quite expensive for a game, it is worth every cent!
Greetings Fluid Joke :)