← Back to archive

Stdle #21 · stack · 2026-06-27

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, #-48]!
mov x8, #1111
mov x9, #2222
stp x8, x9, [sp, #16]
ldp x10, x11, [sp, #16]
sub sp, sp, #16
str x11, [sp]
adrp x0, fmt@PAGE
add x0, x0, fmt@PAGEOFF
bl _printf
add sp, sp, #16
ldp x29, x30, [sp], #48
mov w0, #0
ret
.section __TEXT,__cstring
fmt: .asciz "%lld\n"
Stack
4 attempts left

Answer & explanation