Question: This is what I have so far: la $a0, array la $a1, array_size lw $a1, 0($a1) sll $t1, $t0, 2 add $t2, $a0, $t1 sw

 This is what I have so far: la $a0, array la

This is what I have so far:

la $a0, array la $a1, array_size lw $a1, 0($a1) sll $t1, $t0, 2 add $t2, $a0, $t1 sw $t0, 0($t2) addi $t0, $t0, 1 add $t4, $t4, $t0 slt $t3, $t0, $a1 bne $t3, $zero, loop li $v0, 4 la $a0, message syscall li $v0, 10 syscall

MIPS 1(a): Using MARS (MIPS assembly simulator), write a program with comments that stores words in a RAM array using the instruction sw as specified in the data table below. Use (268501056)10 = (10010040)16 as the base address of the array. Since the instruction sw and indirect addressing (using offsets) are needed to store the data in different array locations, no other addresses are needed. Note that (ffffffa)16 is a negative number. MARS Data Segment in RAM A[0] A[4] A[c] A[10] A[14] A[18] A[10] A[8] 00000064 Address 10010020 10010040 10010060 0000000f 0000000d ffffffa MIPS 1(a): Using MARS (MIPS assembly simulator), write a program with comments that stores words in a RAM array using the instruction sw as specified in the data table below. Use (268501056)10 = (10010040)16 as the base address of the array. Since the instruction sw and indirect addressing (using offsets) are needed to store the data in different array locations, no other addresses are needed. Note that (ffffffa)16 is a negative number. MARS Data Segment in RAM A[0] A[4] A[c] A[10] A[14] A[18] A[10] A[8] 00000064 Address 10010020 10010040 10010060 0000000f 0000000d ffffffa

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!