0000 1111 1010 0101 0FA5 0011 0110 1000 1111 368F ——————————————————— ———— 0011 1111 1010 1111 3FAF
Doing
the problem by hand yields the result,
0x3faf
.
Of course,
when the program runs the result
will be 32 bits long:
0x00003faf
.
To run the program:
The picture shows the result of running the program.
The result in $10
is what was expected.
Here is the complete line for the first instruction from the source window:
[0x00400000] 0x34080fa5 ori $8, $0, 4005 ori $8,$0,0x0FA5
Look at the 32-bit machine instruction. Do you see the immediate operand in it?