update for HEAD-2003091401
[reactos.git] / lib / string / i386 / tcscmp.h
1 /* $Id$
2  */
3
4 #include "tchar.h"
5
6 .globl  _tcscmp
7
8 _tcscmp:
9  push %esi
10  push %edi
11  mov  0x0C(%esp), %esi
12  mov  0x10(%esp), %edi
13  xor  %eax, %eax
14  cld
15
16 .L1:
17  _tlods
18  _tscas
19  jne  .L2
20  test %eax, %eax
21  jne  .L1
22  xor  %eax, %eax
23  jmp  .L3
24
25 .L2:
26  sbb  %eax, %eax
27  or   $1, %al           
28
29 .L3:
30  pop  %edi
31  pop  %esi
32  ret
33
34 /* EOF */