1 2#include "tchar.h" 3#include <asm.inc> 4 5PUBLIC _tcsncmp 6.code 7 8FUNC _tcsncmp 9 FPO 0, 3, 2, 2, 0, FRAME_FPO 10 push esi 11 push edi 12 mov esi, [esp + 12] /* s1 */ 13 mov edi, [esp + 16] /* s2 */ 14 mov ecx, [esp + 20] /* n */ 15 16 xor eax, eax 17 cld 18 19.L1: 20 dec ecx 21 js .L2 22 _tlods 23 _tscas 24 jne .L3 25 test eax, eax 26 jne .L1 27 28.L2: 29 xor eax, eax 30 jmp .L4 31 32.L3: 33 sbb eax, eax 34 or al, 1 35 36.L4: 37 pop edi 38 pop esi 39 ret 40ENDFUNC 41 42END 43/* EOF */ 44