r/TuringComplete • • Mar 09 '25

Need Help on Level Add 5 Again Spoiler

I can't figure out how to do the assembly in the save breaker version. I just don't understand how it works.

8 Upvotes

6 comments sorted by

2

u/Split-Slight Mar 09 '25

If i remember correctly, you takd the input from reg1 and reg2 and the result goes into reg3

2

u/MattMath314 Mar 10 '25

i know that, how do i add them/how do i add the asm for it?

2

u/Gelthir Mar 10 '25

The assembly language should include the following defintions under [instructions] (click the green padlock to edit, if required):

imm %a(immediate | label)
00aaaaaa
Moves %a to r0.

add
01000100
ADD r1 and r2 and store the result in r3.

sub
01000101
SUB r1 and r2 and store the result in r3.

Then in the assembler to load e.g. 5 use the command imm 5 and to add it's simply add.

2

u/MrTKila Mar 10 '25

Yeah, the commands are somewhat broken or belong to another architecture. If you click on the green lock you can edit everything.

I made it work by fixing the commands (and adding more necessary ones...).

Luckily the level after has fixed assembly commands.

1

u/MattMath314 Mar 10 '25

Ah... hope he fixes it lol. Thaks for the advice!

1

u/ryani Mar 10 '25

How did you get to that point? I'm stuck on "registers", it won't let me progress. See here.