summaryrefslogtreecommitdiff
path: root/libmeidogte/square0.s
blob: d037b7e7aef4699a4f48a99396d8431863a7ed56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.set noreorder

.include "gtereg.h"
.include "inline_s.h"

.section .text


.global Square0
.type Square0, @function
Square0:

	# a0 - Pointer to input vector (v0)
	# a1 - Pointer to output vector (v1)

	lwc2	C2_IR1, 0($a0)
	lwc2	C2_IR2, 4($a0)
	lwc2	C2_IR3, 8($a0)

	nSQR(0)

	swc2	C2_IR1, 0($a1)
	swc2	C2_IR2, 4($a1)
	swc2	C2_IR3, 8($a1)

	jr		$ra
	nop