kolibrios-gitea/drivers/ddk/string/strncmp.S
Sergey Semyonov (Serge) bc7ac722c2 kms R100-R500: load microcode and start cp
git-svn-id: svn://kolibrios.org@1412 a494cfbc-eb01-0410-851d-a64ba20cac60
2010-02-13 21:28:53 +00:00

23 lines
454 B
ArmAsm

# strncmp() Author: Kees J. Bot 1 Jan 1994
# int strncmp(const char *s1, const char *s2, size_t n)
# Compare two strings.
#
.intel_syntax
.globl _strncmp
.globl _strcmp
.text
.align 16
_strncmp:
mov ecx, [esp+12] # Maximum length
jmp __strncmp # Common code
.align 16
_strcmp:
mov ecx, -1 # Maximum length
jmp __strncmp # Common code