Question: a. Suppose the program counter, PC, has the value 0x12345678. What is the value of PC after executing the following jump instruction? j 0x10 Note:

a. Suppose the program counter, PC, has the value 0x12345678. What is the value of PC after executing the following jump instruction?

j 0x10

Note: The meaning of "0x10" here is that the j instruction has the value 0x10 (= 16 in decimal) in its 26-bit immediate field.

Answer: The value of PC after execution (in hex) = 0x_________ (give all 8 hexits, leading "0x" already given)

b. Suppose the program counter, PC, has the value 0x12345678. What is the value of PC after executing the following instruction?

beq $0, $0, -5

Note: The meaning of "-5" here is that the branch instruction has the value -5 in its 16-bit immediate field.

Answer: The value of PC after execution (in hex) = 0x_________ (give all 8 hexits, leading "0x" already given)

c. Suppose the program counter, PC, has the value 0x12345678. What is the value of PC after executing the following instruction?

bne $0, $0, 5

Note: The meaning of "5" here is that the branch instruction has the value 5 in its 16-bit immediate field.

Answer: The value of PC after execution (in hex) = 0x_________ (give all 8 hexits, leading "0x" already given)

The correct answers are 10000040, 12345668, and 1234567c. Please show me how you got the answers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!