Homework Solution: How will the instruction:…

    How will the instruction: sw $12, 24($10) be stored in a 32-bit word in machine language? Answer in hexadecimal.

    Expert Answer

    How allure the instruction:

    sw $12, 24($10)

    be stored in a 32-bit engagement in muniment speech? Repartee in hexadecimal.

    Expert Repartee

     

    sw $12, 24($10) means $12 allure be stored at fame colony (24 + $10). In 32-bit engagement, 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 given as:

    1010 1101 0100 1100 0000 0000 0001 1000.