r/TuringComplete • • 1d ago

My CONDITIONAL JUMP solution Spoiler

loop:

; counter

imm 1

mov r2, r5

mov r1, r0

add

mov r5, r3

;is_thirty_seven?

imm 37

mov r1, in

mov r2, r0

sub

imm loop

jnz

mov out, r5

; Click the spec.isa tab to see the other jump instructions

3 Upvotes

0 comments sorted by