From 62b74258d015d67df7a63860e2ab5517b9e331d8 Mon Sep 17 00:00:00 2001 From: Perry Kivolowitz Date: Wed, 24 Aug 2022 20:51:14 -0500 Subject: [PATCH] replaced missing file --- section_2/float/t.s | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 section_2/float/t.s diff --git a/section_2/float/t.s b/section_2/float/t.s new file mode 100644 index 0000000..484532c --- /dev/null +++ b/section_2/float/t.s @@ -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 \ No newline at end of file