What is a stack pointer register? - 8085
What is a stack pointer register, describe briefly.
-The Stack pointer is a sixteen bit register used to point at the stack.
- In read write memory the locations at which temporary data and return addresses are stored is known as the stack.
- In simple words stack acts like an auto decrement facility in the system.
- The initialization of the stack top is done with the help of an instruction LXI SP.
- In order to avoid program crashes a program should always be written at one end and initialized at the other.
Discussion
- re: what is a stack pointer register? - 8085 -nicolaus kamwendo (01/16/17)
- Its a register whose job is to hold the address of the top stack. It is created by placing the start of stack address in the stack pointer.
- re: what is a stack pointer register? - 8085 -nicolaus kamwendo (01/16/17)
- Its a register whose job is to hold the address of the top stack. It is created by placing the start of stack address in the stack pointer.
- RE: What is a stack pointer register? - 8085 -chaitanya (02/10/15)
- stack pointer is a special purpose 16 bit register in the microprocessor used to represent top address of the stack.