MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The stack pointer in the microprocessor is a ____
A
16 bit register that points to stack memory locations
B
32 bit accumulator
C
memory location in the stack
D
flag regsiter used for the stack
Explanation: 

Detailed explanation-1: -The stack pointer in the 8085 microprocessor is a 16-bit register that stores the address of the top of stack memory. The value of the stack pointer is decremented by 2 in PUSH operation. It will increment by 2 in POP operation.

Detailed explanation-2: -Stack Pointer is also a special purpose register that is used to point the location of the top of the stack. Since location is specified using 16 bits, the stack pointer is a 16-bit register.

Detailed explanation-3: -Stack Pointer (SP) The stack pointer is also a 16-bit register used as a memory pointer. It points to a memory location in R/W memory, called the stack.

Detailed explanation-4: -A stack pointer is a small register that stores the memory address of the last data element added to the stack or, in some cases, the first available address in the stack.

Detailed explanation-5: -The Stack Pointer register will hold the address of the top location of the stack. And the program counter is a register always it will hold the address of the memory location from where the next instruction for execution will have to be fetched. The complete programmer’s view of 8085 is shown in the following figure.

There is 1 question to complete.