Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 $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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started