mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-23 00:36:46 +08:00
replaced missing file
This commit is contained in:
parent
05e9aa254a
commit
62b74258d0
1 changed files with 16 additions and 0 deletions
16
section_2/float/t.s
Normal file
16
section_2/float/t.s
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
.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
|
||||||
Loading…
Reference in a new issue