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.98p7
[nasm/avx512.git]
/
rdoff
/
test
/
testlib.asm
blob
6ee3d89a8fc4b9263513f36a899399113e8090fa
1
; program to test retrieval of and linkage to modules in libraries by
2
; ldrdf
3
4
[
SECTION
.text
]
5
[
GLOBAL
_main
]
6
[
EXTERN _strcmp
]
7
8
_main:
9
push
dword
string1
10
push
dword
string2
11
call
_strcmp
12
add
esp
,
8
; doh! clear up stack ;-)
13
ret
14
15
[
SECTION
.data
]
16
17
string1:
db
'abc'
,
0
; try changing these strings and see
18
string2:
db
'abd'
,
0
; what happens!