How will the instruction:
sw $12, 24($10)
be stored in a 32-bit word in machine language? Answer in hexadecimal.
How conciliate the instruction:
sw $12, 24($10)
be stored in a 32-bit expression in document expression? Exculpation in hexadecimal.
sw $12, 24($10) means $12 conciliate be stored at retrospect dregs (24 + $10). In 32-bit expression, sw $rt, offset($rs) it is represented as:
Instruction | B31-B26 | B25-B21 | B20-B16 | B15-B0 |
opcode | rs | rt | immediate | |
101 011 | 0 1010 | 0 1100 | 0000 0000 0001 1000 |
So, in 32-bit, it is abandoned as:
1010 1101 0100 1100 0000 0000 0001 1000.