Subversion Repositories HelenOS-historic

Rev

Rev 845 | Rev 982 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 845 Rev 860
Line 83... Line 83...
83
	bdnz 8b
83
	bdnz 8b
84
	
84
	
85
	blr
85
	blr
86
 
86
 
87
memcpy:
87
memcpy:
-
 
88
	srwi. r7, r5, 3
-
 
89
	addi r6, r3, -4
-
 
90
	addi r4, r4, -4
88
	# TODO
91
	beq	2f
-
 
92
	
-
 
93
	andi. r0, r6, 3
-
 
94
	mtctr r7
-
 
95
	bne 5f
-
 
96
	
-
 
97
	1:
-
 
98
	
-
 
99
	lwz r7, 4(r4)
-
 
100
	lwzu r8, 8(r4)
-
 
101
	stw r7, 4(r6)
-
 
102
	stwu r8, 8(r6)
-
 
103
	bdnz 1b
-
 
104
	
-
 
105
	andi. r5, r5, 7
-
 
106
	
-
 
107
	2:
-
 
108
	
-
 
109
	cmplwi 0, r5, 4
-
 
110
	blt 3f
-
 
111
	
-
 
112
	lwzu r0, 4(r4)
-
 
113
	addi r5, r5, -4
-
 
114
	stwu r0, 4(r6)
-
 
115
	
-
 
116
	3:
-
 
117
	
-
 
118
	cmpwi 0, r5, 0
-
 
119
	beqlr
-
 
120
	mtctr r5
-
 
121
	addi r4, r4, 3
-
 
122
	addi r6, r6, 3
-
 
123
	
-
 
124
	4:
-
 
125
	
-
 
126
	lbzu r0, 1(r4)
-
 
127
	stbu r0, 1(r6)
-
 
128
	bdnz 4b
89
	blr
129
	blr
-
 
130
	
-
 
131
	5:
-
 
132
	
-
 
133
	subfic r0, r0, 4
-
 
134
	mtctr r0
-
 
135
	
-
 
136
	6:
-
 
137
	
-
 
138
	lbz r7, 4(r4)
-
 
139
	addi r4, r4, 1
-
 
140
	stb r7, 4(r6)
-
 
141
	addi r6, r6, 1
-
 
142
	bdnz 6b
-
 
143
	subf r5, r0, r5
-
 
144
	rlwinm. r7, r5, 32-3, 3, 31
-
 
145
	beq 2b
-
 
146
	mtctr r7
-
 
147
	b 1b