NASM 2.00rc3
[nasm/avx512.git] / test / floattest.asm
blobdcaac2e110b27d47ada53be198a832351ba3869a
1 ; nasm -O99 -f elf32 floattest.asm
2 ; ld -m elf_i386 -o floattest floattest.o -I/lib/ld-linux.so.2 -lc
4 global _start
5 extern printf
7 section .text
8 _start:
10 fld qword [num1]
11 fadd qword [num2]
12 sub esp, 8
13 fstp qword [esp]
14 push fmt
15 call printf
16 add esp, 4*3
18 mov eax, 1
19 xor ebx, ebx
20 int 80h
22 section .data
23 num1 dq 41.5
24 num2 dq 0.5
26 fmt db "%f", 10, 0