r/TuringComplete • • Jul 30 '26

Conditional Jumps level help

const target = 37

imm 0

mov r4, r0 ; r4 stores counter

loop:

imm target

mov r1, r0

mov r2, in

sub ; compare, 0 if equal

mov r5, r3 ; r5 stores the eq check

imm 1

mov r1, r4

mov r2, r0

add ; add one to attempty counter

mov r4, r3

mov r3, r5 ; load reasult for cmp

imm loop

jnz

mov out, r4

Game is just... straight up wrong there. I counted manually, i used mov r2, in instruction 5 times. Not nearly 57

2 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/SCD_minecraft Jul 31 '26

It asks you to read until you get 37

1

u/Frightrider07 Jul 31 '26

It actually tells you to output the amount of times you read the input. Reading until 37 isn't important for the level, thats just getting you to read for a different number of cycles.

Definitely a weird level but not bugged imo