The instruction format of a CPU is: OP CODE | MODE | RegR (one memory word)…

PYQ GATE 1993

The instruction format of a CPU is:

OP CODE | MODE | RegR (one memory word)

Mode and RegR together specify the operand. RegR specifies a CPU register and Mode specifies an addressing mode. In particular, Mode = 2 specifies that the register RegR contains the address of the operand, after fetching the operand, the contents of RegR are incremented by 1.

An instruction at memory location 2000 specifies Mode = 2 and the RegR refers to program counter (PC).

(a) What is the address of the operand?

(b) Assuming that this is a non-jump instruction, what are the contents of PC after the execution of this instruction?

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…