In: Computer Science
Assume that a sequence of 10 32-bit values exists in your data
segment at label "x:"
Write the MIPS statement(s) to read the 2nd 32-bit value into
$t0
MIPS is little-endian. One result
of this is that character data appear to be stored "backwards"
within words. Here is a representation of part of memory, storing
the characters "Help" (0x706c6548) and then the number 32766
(0x00007ffe).
The way to access them is specifiesd in table as follows
:
0x10000000 | 0x48 ("H") |
0x10000001 | 0x65 ("e") |
0x10000002 | 0x6c ("l") |
0x10000003 | 0x70 ("p") |
0x10000004 | 0xfe |
0x10000005 | 0x7f |
0x10000006 | 0x00 |
0x10000007 | 0x00 |