trans.s 1.23 KB

#include "rsp.h"

.base           MSPBOOTBASE

.name	row0,	$1
.name	row1,	$2
.name	row2,	$3
.name	row3,	$4
.name	row4,	$5
.name	row5,	$6
.name	row6,	$7
.name	row7,	$8

.name	x20,	$v16
.name	x21,	$v17
.name	x22,	$v18
.name	x23,	$v19
.name	x24,	$v20
.name	x25,	$v21
.name	x26,	$v22
.name	x27,	$v23

.name	x10,	$v8
.name	x11,	$v9
.name	x12,	$v10
.name	x13,	$v11
.name	x14,	$v12
.name	x15,	$v13
.name	x16,	$v14
.name	x17,	$v15

	lqv x20, 0(row0)
	lqv x21, 0(row1)
	lqv x22, 0(row2)
	lqv x23, 0(row3)

	lqv x24, 0(row4)
	lqv x25, 0(row5)
	lqv x26, 0(row6)
	lqv x27, 0(row7)

	nop
	nop
	nop
	nop
	nop

.name	at0,	$10
.name	at1,	$11
.name	at2,	$12
.name	at3,	$13
.name	at4,	$14
.name	at5,	$15
.name	at6,	$16
.name	at7,	$17
	
	stv	x20[0], 0(at0)
	stv	x21[1], 0(at1)
	stv	x22[2], 0(at2)
	stv	x23[3], 0(at3)
	stv	x24[4], 0(at4)
	stv	x25[5], 0(at5)
	stv	x26[6], 0(at6)
	stv	x27[7], 0(at7)
	
	nop
	nop
	nop
	nop
	nop

	ltv	x10[0], 0(at0)
	ltv	x11[7], 0(at1)
	ltv	x12[6], 0(at2)
	ltv	x13[5], 0(at3)
	ltv	x14[4], 0(at4)
	ltv	x15[3], 0(at5)
	ltv	x16[2], 0(at6)
	ltv	x17[1], 0(at7)

	nop
	nop
	nop
	nop
	nop

	sqv x10, 0(at0)
	sqv x11, 0(at1)
	sqv x12, 0(at2)
	sqv x13, 0(at3)

	sqv x14, 0(at4)
	sqv x15, 0(at5)
	sqv x16, 0(at6)
	sqv x17, 0(at7)


	nop
	nop
	nop
	nop
	nop