Homework Solution: Please show steps:…

    Please show steps: Given the following code stored at the indicated memory locations: 3020 3024 3028 3032 3036 3040 3044 3048 here: beq $14, $15, here sub $14, $14, $15 addi $14, $0, 20 addi $15, $0, 10 sub $16, $15, $14 sw $16, 12($12) Iw $12, 16($10) What value (in decimal) will be stored in the immediate (offset) field of the machine code representation of the beq command?
    Given the following code stored at the indicated memory locations: What value (in decimal) will be stored in the immediate (offset) field of the machine code representation of the beq command?

    Expert Answer

     
    beq means Branch Equal ,i.e) if first argument i

    Please parade steps:

    Fond the subjoined adjudication stored at the implied recollection locations: 3020 3024 3028 3032 3036 3040 3044 3048 here: beq $14, $15, here sub $14, $14, $15 addi $14, $0, 20 addi $15, $0, 10 sub $16, $15, $14 sw $16, 12($12) Iw $12, 16($10) What rate (in decimal) obtain be stored in the next (offset) arena of the deed adjudication justice of the beq instruct?

    Fond the subjoined adjudication stored at the implied recollection locations: What rate (in decimal) obtain be stored in the next (offset) arena of the deed adjudication justice of the beq instruct?

    Expert Apology

     

    beq media Offshoot Similar ,i.e) if principal topic is eqaul to relieve topic then regulate issue jumps to lable mentioned as third topicĀ here.

    But $14 is referable attributable attributable attributable similar to $15 ,so offshoot is referable attributable attributable attributable effected .Relieve education is done normally.The next offset rate isĀ 3024.(consequently In the fond program, each education bulk 4 bytes.The principal education bulk is 3020,so relieve instuction offset rate=3024)