0
如何驗證矩陣是以mips對稱的?Mips:驗證矩陣是否是對稱的
.data
string1: .asciiz "dati n \n"
string2: .asciiz "dati elem matrice \n"
n: .word 0
elem: .space 1024
.text
main:
li $v0,4
la $a0,string1
syscall
li $v0,5
syscall
sw $v0,n
lw $t0,n
mulo $t0,$t0,$t0
la $t1,elem
li $v0,4
la $a0,string2
syscall
read_matrix:
beq $t0,$0,end_citire
li $v0,5
syscall
sw $v0,0($t1)
addi $t0,-1
addi $t1,4
j read_matrix
end_citire:
li $v0,10
syscall
只有矩陣的讀,但我不覺得一個公式來存取權限的元素,請幫忙