Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/libc/sparc/strcmp.s

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


TEXT	strcmp(SB), $0

	MOVW	s2+4(FP), R10

l1:
	MOVB	0(R7), R8
	MOVB	0(R10), R9
	ADD	$1, R7
	ADD	$1, R10

	CMP	R8, R9
	BNE	l2

	CMP	R8, $0
	BNE	l1

	MOVW	R0, R7
	RETURN

l2:
	BLEU	l3
	MOVW	$1, R7
	RETURN

l3:
	MOVW	$-1, R7
	RETURN

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].