asm_book/section_2/float/t.s
2022-08-24 20:51:14 -05:00

16 lines
No EOL
506 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