MICROPROCESSOR AND MICROCONTROLLER

INTRODUCTION TO MICROPEOCESSOR

MICRO PROCESSOR AND MICRO CONTROLLER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which addressing mode is used in pushing or popping any element on or from the stack?
A
immediate
B
direct
C
indirect
D
register
Explanation: 

Detailed explanation-1: -If we want to push or pop any element on or from the stack then direct addressing mode has to be used in it, as the other way is not accepted.

Detailed explanation-2: -The stack memory addressing mode is used whenever you perform a push or pop operation. Always a word will be entered or popped from the stack in this addressing mode, and the value of the Stack Pointer (SP) will be incremented or decremented accordingly.

Detailed explanation-3: -It uses indexed addressing mode. Thus, one memory cycle will be needed to fetch the operand.

Detailed explanation-4: -The Indirect addressing mode is one in which the address field contains the effective address of the memory location where the actual data is present. Therefore, a dual memory reference is needed to access the data in indirect addressing mode. This will increase the extra calculation to fetch the actual data.

There is 1 question to complete.