← Back to archive

Stdle #136 · branching · 2026-10-20

What does this Assembly snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

.global _main
.align 2
_main:
stp x29, x30, [sp, #-16]!
mov w19, #65
mov w20, #3
loop:
mov w0, w19
bl _putchar
add w19, w19, #1
subs w20, w20, #1
bne loop
mov w0, #10
bl _putchar
ldp x29, x30, [sp], #16
mov w0, #0
ret
Branching
4 attempts left

Answer & explanation