Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

home / study / engineering / electrical engineering / electrical engineering que

ID: 2268248 • Letter: H

Question

home / study / engineering / electrical engineering / electrical engineering questions and answers / suppose that the program counter (pc), register r15, contained the hex value 0x8000. from what ... Your question has been answered Let us know if you got a helpful answer. Rate this answer Question: Suppose that the Program Counter (PC), register r15, contained the hex value 0x8000. From what ad... Suppose that the Program Counter (PC), register r15, contained the hex value 0x8000. From what address would an ARM7TDMI… Fetch an instruction? Decode an instruction? Execute an instruction? When the PC is updated for the next ARM instruction in the program, what is the new value?

Explanation / Answer

Answer :- ARM7TDMI has three stage of pipelining. These are Fetch, Decode and Execute.

Present value of PC = 0x8000, thus fetching is done from 0x8000,
decoding of instruction at address, 0x8000 - 0x0004 = 0x7FFD
and execution of instruction at address, 0x8000 - 0x0008 = 0x7FFA.

When PC is updated for next ARM instruction then PC = 0x8004.

The above calculations are for ARM mode. If THUMB mode is chosen then we subtract two from the current PC value.