summaryrefslogtreecommitdiff
path: root/rdoff/test/testlib.asm
blob: 6ee3d89a8fc4b9263513f36a899399113e8090fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; 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!