In which addressing mode is the operand given explicitly within the…
2009
In which addressing mode is the operand given explicitly within the instruction itself?
Answer: B. Immediate mode — An addressing mode is the rule by which the CPU determines where an instruction's operand actually comes from: the value itself, a memory address, a pointer…
- A.
Absolute mode
- B.
Immediate mode
- C.
Indirect mode
- D.
Index mode
Attempted by 192 students.
Show answer & explanation
Correct answer: B
An addressing mode is the rule by which the CPU determines where an instruction's operand actually comes from: the value itself, a memory address, a pointer to an address, or an address computed from a base and an offset/index.
Immediate mode: the operand's constant value is placed directly inside the instruction word, so the CPU reads it straight from the instruction with zero extra memory references.
Absolute (direct) mode: the instruction instead carries the memory address of the operand, so one memory access is needed to fetch the value stored there.
Indirect mode: the instruction carries the address of a location that itself stores the operand's address, so two memory accesses are needed to resolve the final value.
Index mode: the effective address is computed by adding an index register's content to a base/displacement given in the instruction, followed by a memory access at that computed address.
Only immediate mode requires no memory access at all to obtain the operand, because the value is already present in the instruction. Absolute, indirect, and index modes all require at least one memory reference to compute or fetch the operand. Hence the operand being 'given explicitly in the instruction itself' uniquely identifies immediate mode.
Immediate mode is the correct answer.