Stdle #161 · memory · 2026-11-14
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, #-32]! mov w8, #0x00FF str w8, [sp, #16] mov w9, #0x01 strb w9, [sp, #17] ldr w10, [sp, #16] sub sp, sp, #16 str x10, [sp] adrp x0, fmt@PAGE add x0, x0, fmt@PAGEOFF bl _printf add sp, sp, #16 ldp x29, x30, [sp], #32 mov w0, #0 ret.section __TEXT,__cstringfmt: .asciz "%d\n"Memory