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