asm_book/section_2/float/t.s
2022-08-25 10:23:54 -05:00

17 lines
No EOL
495 B
ArmAsm

.text
.global main
.align 2
main: str x30, [sp, -16]!
ldr s0, =0x3fc00000
fcvt d0, s0
ldr x0, =fmt
bl printf
ldr x30, [sp], 16
mov w0, wzr
ret
.data
fmt: .asciz "%f\n"
.end