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