Sync with trunk r62529.
[reactos.git] / lib / sdk / crt / string / i386 / tcsncat.inc
1
2 #include "tchar.h"
3 #include <asm.inc>
4
5 PUBLIC _tcsncat
6 .code
7
8 _tcsncat:
9 push esi
10 push edi
11 mov edi, [esp + 12]
12 mov esi, [esp + 16]
13 cld
14
15 xor eax, eax
16 mov ecx, -1
17 repne _tscas
18 _tdec(edi)
19
20 mov ecx, [esp + 20]
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 eax, [esp + 12]
37 pop edi
38 pop esi
39
40 ret
41
42 END
43 /* EOF */