mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 05:36:48 +08:00
17 lines
No EOL
495 B
ArmAsm
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
|
|
|