nasm/rdoff/test/testlib.asm
H. Peter Anvin 76690a12ad NASM 0.96
2002-04-30 20:52:49 +00:00

19 lines
343 B
NASM

; program to test retrieval of and linkage to modules in libraries by
; ldrdf
[SECTION .text]
[GLOBAL _main]
[EXTERN _strcmp]
_main:
push dword string1
push dword string2
call _strcmp
add esp,8 ; doh! clear up stack ;-)
ret
[SECTION .data]
string1: db 'abc',0 ; try changing these strings and see
string2: db 'abd',0 ; what happens!