Welcome to mirror list, hosted at ThFree Co, Russian Federation.

strncmp.S « rx « machine « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 929e9cb0a839633ee8e4f8e2bd16a7f82130e186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
	.file	"strncmp.S"

	.section .text
	.global  _strncmp
	.type	 _strncmp,@function
_strncmp:
	scmpu			; Perform the string comparison
	bnc	1f		; If Carry is not set skip over
	scne.L	r1		; Set result based on Z flag
	rts			;
1:				;
	mov	#-1,r1		; Carry not set, result should be negative
	rts			;