Question: Assume that arrX array is already defined and allocated in memory, its base address 0xabcd3000 and already stored in $a2 and its number of elements

Assume that arrX array is already defined and allocated in memory, its base address 0xabcd3000 and already stored in $a2 and its number of elements in $a3. Answer each of the next questions as required.

arrX: .word 0x99,0x20,0x73,0x40,0x50,0x69, ...

Please write question numbers and answer parts in this question in order.

Q1) The fourth element of arrX is located at HEX address _______________________________

Q2) Write one MIPS instruction to copy into $t9 the value of the fourth element of arrX: _____________________________

Q3) Write one MIPS instruction to calculate $t0 = 32 * fourth element: ______________________________

Q4) Write NO more than 3 MIPS instructions to decrement the fourth element of arrX: ______________________________

Q5) Write no more than 6 instructions to calculate

$v0= first element - last element in arrX

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!