tcsncmp.h

来自「一个类似windows」· C头文件 代码 · 共 41 行

H
41
字号
/* $Id: tcsncmp.h 21683 2006-04-21 15:15:18Z peterw $
 */

#include "tchar.h"

.globl	_tcsncmp

_tcsncmp:
 push %esi
 push %edi
 mov  0x0C(%esp), %esi /* s1 */
 mov  0x10(%esp), %edi /* s2 */
 mov  0x14(%esp), %ecx /* n */

 xor  %eax,%eax
 cld

.L1:
 dec  %ecx
 js   .L2
 _tlods
 _tscas
 jne  .L3
 test %eax, %eax
 jne  .L1

.L2:	
 xor  %eax, %eax
 jmp  .L4

.L3:
 sbb  %eax, %eax
 or   $1, %al		

.L4:
 pop  %edi
 pop  %esi
 ret

/* EOF */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?