Question: Using MARS (MIPS assembly simulator), write and debug a program with comments that will store words in a RAM array using the instruction sw and

Using MARS (MIPS assembly simulator), write and debug a program with comments that will store words in a RAM array using the instruction sw and indirect addressing as specified in the data table below. Although the addresses and data are in given hexadecimal, your code will contain corresponding values in decimal. 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 elements, you do not need to use other addresses in your code.

MARS Data Segment in RAM

Address A[0] A[4] A[8] A[c] A[10] A[14] A[18] A[1c]
10010020 00000064
10010040 0000000d 0000000f
10010060 ffffffff

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!