[HEADERS]
[reactos.git] / lib / sdk / crt / string / i386 / tcscmp.inc
1 /* $Id$
2 */
3
4 #include "tchar.h"
5 #include <reactos/asm.h>
6
7 PUBLIC _tcscmp
8 .code
9
10 _tcscmp:
11 push esi
12 push edi
13 mov esi, [esp + 12]
14 mov edi, [esp + 16]
15 xor eax, eax
16 cld
17
18 .L1:
19 _tlods
20 _tscas
21 jne .L2
22 test eax, eax
23 jne .L1
24 xor eax, eax
25 jmp .L3
26
27 .L2:
28 sbb eax, eax
29 or al, 1
30
31 .L3:
32 pop edi
33 pop esi
34 ret
35
36 END
37 /* EOF */