problem about mars-simulator-Collection of common programming errors
-
quetzalcoatl
alignment mips mars-simulator
.text .globl main main: addi $v0, $0, 4 la $a0, msg_dimensions_matrix syscall li $v0, 5 # Scans N (size of matrix). syscall move $s7, $v0 # Stores given matrix size in $s7. addi $v0, $0, 4 la $a0, msg_fill syscall addi $t0, $0, 0 # Initializes counter (stored in $t0). move $a0, $t0 # Moves counter to $a0. mul $a3, $s7, $s7 mul $a3, $a3, 4 jal input_loop_0