A good answer might be:

NO. The first instruction keeps the upper half of $10 the same and ORs in some bits in the lower half.

The second instruction replaces all 32 bits of $10 with the zero-extended immediate operand.

ori  $10,$10,0x00C4

ori  $10,$0, 0x00C4

Assembly Arrays

An array of int in C is implemented as a sequence of words in successive word-aligned memory locations. For example, the diagram shows a possible run-time implementation of:

int data[] = {0, 1, 2, 3, 4, 5};

 

(If you don't know C, just ignore this page.)



QUESTION 12:

What is the most sensible address to have in the base register for processing this array?