MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The addressing mode/s, which uses the PC instead of a general purpose register is ____
A
Indexed with offset
B
Relative
C
Direct
D
Both Indexed with offset and direct
Explanation: 

Detailed explanation-1: -Explanation: The relative addressing mode is used for this since it directly updates the PC.

Detailed explanation-2: -The PC-relative addressing mode can be used to load a register with a value stored in program memory a short distance away from the current instruction. It can be seen as a special case of the “base plus offset” addressing mode, one that selects the program counter (PC) as the “base register".

Detailed explanation-3: -Indexed Addressing Mode or Index Register Relative Addressing Mode.

Detailed explanation-4: -Register mode: In register addressing the operand is placed in one of 8 bit or 16 bit general purpose registers. The data is in the register that is specified by the instruction.

Detailed explanation-5: -Relative based indexed addressing mode-In this mode, the address of the operand is calculated as the sum of base register, index register and 8 bit or 16 bit displacement. This instruction moves a byte from the address pointed by BX + DI + 20H in data segment to CL.

There is 1 question to complete.