Question: This Course is computer architecture course : A CPU executes the following sequence of instructions, starting with the Program Counter ( PC ) set to

This Course is computer architecture course :
A CPU executes the following sequence of instructions, starting with the Program Counter (PC) set to 1000. Each instruction is 4 bytes long. Answer the questions below.
Instruction Sequence:
- Fetch an instruction at address 1000.
- Fetch an instruction at address 1004.
-A jump instruction causes the PC to update to 1040.
- Fetch an instruction at address 1040.
- Fetch an instruction at address 1044.
Questions:
1.What is the value of the PC after each step in the instruction sequence?
2. If a branch instruction at address 1044 modifies the PC to 1012, what happens next?

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 Programming Questions!