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