Engineering Questions with Answers - Multiple Choice Questions
MCQs on Addressing Modes
There are _____ number of addressing modes found for the source and _____ number of modes for the destination part.
Explanation: In MSP430, Seven addressing modes for the source operand and four addressing modes for the destination operand can address the complete address space with no exceptions.
MSP430 describes reti instruction as ___________
a) Format1 addressing
b) Format2 addressing
c) Jump addressing
d) None of the mentioned
Explanation: MSP430 describes reti instruction as that type of addressing which consists of only single operand, so it comes under Format2 addressing.
mov.w R3, R4 takes _________
a) one cycle
b) two cycles
c) four cycles
d) eight cycles
Explanation: mov.w R3, R4 takes only one cycle to transfer the data from register R3 to R4. This type of mode of addressing is called the register mode of addressing.
Indexed addressing can be used for _________
c) source & destination
d) none of the mentioned
Explanation: Indexed addressing is used for both the source and the destination addresses.
What do you understand form this instruction mov.w X(PC), R6
a) R6 = X+PC
b) R6 = PC-X
c) R6 = -X-PC
d) R6 = -X+PC
Explanation: This instruction mov.w X(PC), R6 means that the contents of X+PC address are copied to the R6 register.
Absolute mode uses which of the following operators?
Explanation: Absolute mode uses the & operator to transfer a constant to a register.
Indirect register mode is used by _________
a) source register
b) destination register
c) source & destination register
d) none of the mentioned
Explanation: Indirect addressing mode is used only by the source register.
Indirect mode and the indirect auto increment mode have which common operator in them
Explanation: Both the indirect and the indirect auto increment mode use the @ operator for the source register to transfer the data from one memory location to a register.
Are the following two instructions similar?
MOV @R10,0(R11) and MOV @R10+,0(R11)
c) cant be said
d) depends on the conditions
Explanation: MOV @R10,0(R11) → Move the contents of the source address (contents of R10) to the destination address (contents of R11).
MOV @R10+,0(R11) → Move the contents of the source address (contents of R10) to the destination address (contents of R11). Register R10 is incremented by 1 for a byte operation, or 2 for a word operation after the fetch; it points to the next address without any overhead. This is useful for table processing.
MOV @R10,0(R11) is a type of ________
a) Register Mode
b) Indirect Register Mode
c) Immediate Mode
d) Indirect Autoincrement Mode
Explanation: The type of given instruction is Indirect Register Mode.