Stdle #104 · arithmetic · 2026-09-18
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, #0 mov w9, #6 mov w10, #7mul_loop: cbz w10, mul_done add w8, w8, w9 sub w10, w10, #1 b mul_loopmul_done: sub sp, sp, #16 str x8, [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"Arithmetic