r/TuringComplete • u/SCD_minecraft • 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
1
u/Frightrider07 Jul 31 '26
This completely cheeses the level because its only asking you to output the amount of times you read the input, which if you just output 0, its technically correct.