Stdle #84 · floats · 2026-08-29
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]! adrp x0, val@PAGE add x0, x0, val@PAGEOFF ldr d0, [x0] fsqrt d0, d0 sub sp, sp, #16 str d0, [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 __DATA,__data.align 3val: .double 25.0.section __TEXT,__cstringfmt: .asciz "%g\n"Floats