~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
! Copyright (C) 2000, 2002 MySQL AB
2
! 
3
! This library is free software; you can redistribute it and/or
4
! modify it under the terms of the GNU Library General Public
5
! License as published by the Free Software Foundation; version 2
6
! of the License.
7
! 
8
! This library is distributed in the hope that it will be useful,
9
! but WITHOUT ANY WARRANTY; without even the implied warranty of
10
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
! Library General Public License for more details.
12
! 
13
! You should have received a copy of the GNU Library General Public
14
! License along with this library; if not, write to the Free
15
! Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
! MA 02111-1307, USA
17
18
	.file	"strappend-sparc.s"
19
.section	".text"
20
	.align 4
21
	.global strappend
22
	.type	 strappend,#function
23
	.proc	020
24
strappend:
25
	add	%o0, %o1, %o3		! o3 = endpos
26
	ldsb	[%o0], %o4
27
.loop1:
28
	add	%o0, 1, %o0		! find end of str
29
	cmp	%o4, 0
30
	bne,a	.loop1
31
	ldsb	[%o0], %o4
32
	
33
	sub	%o0, 1, %o0
34
	cmp	%o0, %o3
35
	bgeu	.end
36
	nop
37
	
38
	stb	%o2, [%o0]
39
.loop2:
40
	add	%o0, 1, %o0
41
	cmp	%o0, %o3
42
	blu,a	.loop2
43
	stb	%o2, [%o0]
44
.end:
45
	retl
46
	stb	%g0, [%o3]
47
.strappend_end:
48
	.size	 strappend,.strappend_end-strappend
49
	.ident	"Matt Wagner & Monty"