MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which type of addressing mode is used inAdd R4, R6, #100
A
Index mode
B
Immediate mode
C
Absolute mode
D
Base with index mode
Explanation: 

Detailed explanation-1: -In the direct address mode, the address part of the instruction is equal to the effective address. The operand would reside in memory, and the address here is given directly by the instruction’s address field. The address field would specify the actual branch address in a branch-type instruction.

Detailed explanation-2: -This is a post-index addressing. This instruction will load register R0 with the word at memory address given in register R1.

Detailed explanation-3: -In this mode, the source or destination address is given in the register. By using register indirect addressing mode, the internal or external addresses can be accessed. The R0 and R1 are used for 8-bit addresses, and DPTR is used for 16-bit addresses, no other registers can be used for addressing purposes.

Detailed explanation-4: -d) 5*([R1]+[R2]) Explanation: The addressing mode used is base with offset and index.

There is 1 question to complete.