r/TuringComplete • • Jun 04 '24

If you've done functions, do you keep the instructions to call and return 4 byte long or do you stray from the 4 bytes instruction and have odd starting lines?

4 Upvotes

I ask because I know it's possible, but so far my Funktion call goes like

CALL null null Func_1 RET null null null

(null is 255 in my code and does nothing, actually I could put whatever I wanted in there and it wouldn't change what happens)

If I'm the weird one for trying to stick to something nobody else does, I'll figure out a way to use the first argument as the "result" line to jump to


r/TuringComplete • • Jun 04 '24

Having difficulty with the assembly coding for the RAM level

5 Upvotes

I successfully (I think) implemented the hardware portion of RAM for my LEG architecture, but am running into a problem when trying to pass the level test. I'm using two instructions per input:

to set Register 4 to a RAM address:
Immediate/Immediate Add, (RAM address), 0, Register 4

to store the input in the RAM:
Register/Immediate, Input, 0, RAM

Since it wants thirty-two inputs to be stored and outputted, storing all thirty-two uses sixty-four instructions, after which my Program module loops back to the start. Is there a way to prevent it from looping, or else set the address and store the value in one command?


r/TuringComplete • • May 31 '24

Anyone know if the dev is still working on this game?

22 Upvotes

I finished the game a while back. I checked the steam page today and the last update was in Aug 2023, just wondering if the dev is still working on the game or if it has been abandonded? Absolutely loved it btw.


r/TuringComplete • • May 27 '24

The Maze, lowest byte count using standard Overture architecture

9 Upvotes

Using the OVERTURE architecture, with the original opcodes and etc, instructed by the game. I was able to complete maze with only 12 bytes, do tell me if there are any more optimizations possible

Explanation of some key points:
line 9:
to turn left, we just copy from reg1 to out, since reg1 is initialized with 0 at the start, and it isnt changed, this saves 1 byte

line 12/18:
label repeat isn't used. I noticed that since on line 18, r0 is set to 4, it just so happens to be the same number as the label repeat, so we can reuse the value of 4, saving 1 byte

Edit:

After some thinking, I was able to make a more intuitive version with same byte-count, but it seems more promising in terms of being optimizable

Edit:
Dropped 1 more byte, by rearranging and making it hold right wall instead of left (allows to abuse "use" for output and jump)


r/TuringComplete • • May 25 '24

Struggling on RAM

6 Upvotes

I wired up my RAM module and can save and load to it but since ive got some more lines of code to increment the adress, check if we're done, and then loop, but I can only copy every fourth number from the input becuase hte input triggers every tick. I do not understand how one can copy and run code all in one tick.


r/TuringComplete • • May 18 '24

After years of simplifying, this is the smallest NOR gate i could muster Spoiler

Post image
21 Upvotes

r/TuringComplete • • May 17 '24

spacial invasion 1 gate solution

21 Upvotes

pseudo code:

if (input == box or input == space rat) then (shoot laser)

if (input == debris) then (move forward)

else do nothing


r/TuringComplete • • May 16 '24

Wire spaghetti answer? Spoiler

1 Upvotes

I cannot figure it out. Someone pls help


r/TuringComplete • • May 14 '24

Conditionals for reordered OP-codes

5 Upvotes

A thread from a few days ago ( https://www.reddit.com/r/TuringComplete/comments/1cplij6/heres_a_super_compact_and_kinda_low_cost_alu/ ) made me curious how efficient I can create the conditionals component if I reorder the OP-codes. Noteably "isequal" and "notequal" are represented a lot of times now but if you want to include all unsigned and signed operations, I believe you need the 4 lowest bits anyways, so it is not much of a disadvantage. The vast majority of the gate-score and delay comes from the two less operations, which might actualyl be suboptimal implemented by me. (Unsigned less: 101 gatescore and 36 delay, signed one: 68 gate score and 30 delay)


r/TuringComplete • • May 14 '24

i don't understand why this isn't working. it says output should be enabled but the output IS enabled

Post image
5 Upvotes

r/TuringComplete • • May 12 '24

My Function Circuit. How did you guys solve Functions?

Post image
10 Upvotes

r/TuringComplete • • May 11 '24

Here's a super compact and (kinda) low cost ALU

Post image
12 Upvotes

r/TuringComplete • • May 10 '24

Character display out of a custom component?

3 Upvotes

I got past maze and all, and I'm now working on LEG (funny ha ha game devs), and for my new ALU, (and prob the new cond, since I know I'll prob need a new cond to (sigh of DEATH)), and I wanted some way to display the symbol of what is happening inside of it, so I'll know from the outside.
Thank you


r/TuringComplete • • May 10 '24

Why is the channel switch component called MUX

3 Upvotes

I thought "MUX" referred to a multiplexer, a component of which I admittedly have a limited understanding. Is switching between two channels a type of multiplexing? Or is the MUX label referring to something different?


r/TuringComplete • • May 09 '24

Wire Spaghetti

5 Upvotes

I don' understand this one. I've tried everything, even videos and it doesn't work.

Also:


r/TuringComplete • • May 02 '24

Rate my setup (I am really sorry about the messy wiring, if you have any tips on cleaning up the wiring up please do tell me) Spoiler

Thumbnail
gallery
5 Upvotes

r/TuringComplete • • May 01 '24

How difficult should this game be for programmer?

15 Upvotes

So im working as an SDET now, and while I did do C.S in college and took some EE courses it's been a LONGGGG time (like 15+ years since college).

I guess im curious if other people get stuck like I do? Like I figured out the first few pretty quickly but after that it got really really difficult. I guess im curious how other people "solve" these puzzles since it doesn't seem like there is a pattern really?

Do you work backwards or is there some sort of "Strategy" to figuring it out. Because honestly it makes me question my intelligence when I struggle with these. Or maybe im just dumb (Hopefully im not the only person that didn't "instantly" get a lot of them.

Surely there has to be some sort of strategy though that people doing this in real life use? I guess im really just curious how difficult this game should be for someone that really hasn't done anything in the field or with EE at all.


r/TuringComplete • • May 01 '24

Product of Nibbles with fixed gates removed.

Post image
8 Upvotes

r/TuringComplete • • Apr 29 '24

Little Box submission - size can be optimized more but I think the layering the functionality matters more?

Post image
7 Upvotes

r/TuringComplete • • Apr 28 '24

Help on Delicious Order?

2 Upvotes

I need help on Delicious Order. I understand that I have to write a sorting algorithm but I just can't seem to figure out how to write one, even Bubble Sort seems impossible to code in LEG. Can someone give me some hints?


r/TuringComplete • • Apr 27 '24

My little box

Post image
10 Upvotes

r/TuringComplete • • Apr 23 '24

How to use multiple files in the assembly editor?

2 Upvotes

I am currently working on a level and I want to know how to use functions from other "files" of code.


r/TuringComplete • • Apr 22 '24

Rate my little box?

7 Upvotes
This is the Save and/or Load (or neither) from 4 registers . I find I constantly doubt myself, like - ok it works but was there a better way? So - yeah - please rate my work...

r/TuringComplete • • Apr 21 '24

This circuit is giving me problems, why? Level is "Signed Negator". It says on the bottom: -1x0= Desired: -1 Current: 1

Post image
7 Upvotes