← Back to archive

Stdle #85 · branching · 2026-08-30

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, #49
mov w20, #5
1:
mov w0, w19
bl _putchar
add w19, w19, #1
subs w20, w20, #1
bne 1b
mov w0, #10
bl _putchar
ldp x29, x30, [sp], #16
mov w0, #0
ret
Branching
4 attempts left

Answer & explanation