26.0k views
5 votes
During the course of execution of a program, the processor will increment the contents of the instruction register (program counter) by one word after each instruction fetch, but will alter the contents of that register if it encounters a branch or call instruction that causes execution to continue elsewhere in the program. There are two alternatives with respect to instruction addresses:

a. Maintain a relative address in the instruction register and do the dynamic address translation using the instruction register as input. When a successful branch or call is encountered, the relative address generated by that branch or call is loaded into the instruction register .
b. Maintain an absolute address in the instruction register. When a successful branch or call is encountered, dynamic address translation is employed, with the results stored in the instruction register

User BrianRT
by
4.7k points

2 Answers

2 votes

Final answer:

During program execution, the instruction register is incremented by one word after each fetch, but can be altered by branch or call instructions. Two alternatives to maintain instruction addresses are described: option a uses dynamic address translation with relative addresses, and option b uses dynamic address translation with absolute addresses.

Step-by-step explanation:

The subject of this question is Computers and Technology.

During the course of execution of a program, the processor increments the contents of the instruction register (program counter) by one word after each instruction fetch. However, if the processor encounters a branch or call instruction that causes execution to continue elsewhere in the program, it alters the contents of the instruction register. There are two alternatives for maintaining instruction addresses:

Option a: Maintain a relative address in the instruction register and use dynamic address translation. When a successful branch or call is encountered, the relative address generated by that branch or call is loaded into the instruction register.

Option b: Maintain an absolute address in the instruction register. When a successful branch or call is encountered, dynamic address translation is used, and the results are stored in the instruction register.

User Sandeepmaaram
by
4.6k points
0 votes
Bdbdbdhdhdhdhdjdbsbbrvrvrrvrvrvfvfvvfvfvfvfvfhdhdhdhdhdhdhhdududududududuebebbedvdvd I known why ahh it happened
User Danial Dezfooli
by
4.4k points