repo.or.cz
/
nasm
/
avx512.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
NASM 0.99.05
[nasm/avx512.git]
/
test
/
floattest.asm
blob
dcaac2e110b27d47ada53be198a832351ba3869a
1
; nasm -O99 -f elf32 floattest.asm
2
; ld -m elf_i386 -o floattest floattest.o -I/lib/ld-linux.so.2 -lc
3
4
global
_start
5
extern printf
6
7
section
.text
8
_start:
9
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
17
18
mov
eax
,
1
19
xor
ebx
,
ebx
20
int
80h
21
22
section
.data
23
num1
dq
41.5
24
num2
dq
0.5
25
26
fmt
db
"%f"
,
10
,
0