Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions