This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / lib / string / i386 / tcsncat.h
1 /* $Id$
2  */
3
4 #include "tchar.h"
5
6 .globl _tcsncat
7
8 _tcsncat:
9  push  %esi
10  push  %edi
11  mov   0x0C(%esp), %edi
12  mov   0x10(%esp), %esi
13  cld
14
15  xor   %eax, %eax
16  mov   $-1, %ecx
17  repne _tscas
18  _tdec(%edi)
19
20  mov   0x14(%esp),%ecx
21
22 .L1:    
23  dec   %ecx
24  js    .L2
25  _tlods
26  _tstos
27  test  %_treg(a), %_treg(a)
28  jne   .L1
29  jmp   .L3
30
31 .L2:
32  xor   %eax, %eax
33  _tstos
34
35 .L3:            
36  mov   0x0C(%esp), %eax
37  pop   %edi
38  pop   %esi
39
40  ret
41
42 /* EOF */