answersLogoWhite

0


Best Answer

8 bit

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Size of stack memory and stack pointer register in 8051 microprocessor?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is stack in microprocessor?

The stack is a region of memory set aside to store register values and operands.


Which CPU register holds address for memory?

The program counter (PC) and the stack pointer (SP).


What is the SP pointing register's default memory segment?

The default segment for SP (Stack Pointer) relative memory accesses in the 8086/8088 is SS (Stack Segment).


How does push work on registers and variables?

The PUSH instruction decrements the stack pointer by the size of the operand and then stores its operand at the memory address pointed to by the stack pointer. This leaves the stack pointer always pointing to the last element pushed onto the stack.The POP instruction reverses the sequence, retrieving the operand first, and then incrementing the stack pointer by the size of the operand.Also, PUSH and POP do not work on variables - they only work on register values. You can pop/push a variable, however, by using a register and then storing/retrieving the register to/from memory.


What is the difference between register stacks and memory stacks?

Registers are normally memory spaces internal to the processor or very close to it. They are generally faster than main memory and will be small in size and will hold very frequently used data.Register stacks are a set of such register memory locations.Memory refers to computers main memory outside CPU. It is used to keep data and programs. Memory stack is a series of memory locations.The difference between register stack and memory stack is...


How much space did the Intel 8080 microprocessor have?

The stack size of Intel's 8085 microprocessor is theoretically 64 kb, but the real limit is a function of memory and program architecture and layout. The stack pointer is 16 bits, but that is not the same as stack size.


What is Usage of stack register?

The stack register points to the top of the stack for the currently executing thread. The stack is a fixed-length memory allocation at the bottom of addressable memory (highest available address). The stack extends upwards into lower addresses. To keep track of the stack's usage, the stack pointer marks the top of the stack where a new frame will be pushed, decrementing the stack pointer by the required amount. When a frame is popped, the stack pointer is incremented by the frame length. The stack is typically used to call and return from functions by storing the return address of the caller, but can also be used to store a function's arguments (the values passed to it by its caller), its local variables and its exception handlers. Since the memory is allocated as soon as the thread becomes active, moving a pointer to activate and release stack frames is much quicker than requesting heap memory via the operating system.


Why stack data starts from one location less then stack pointer's register address?

Actually, stack data starts one location greater than the stack pointer. In the Intel design, the stack pointer always points to the next location to be used on a push, and pushes always decrement the pointer. It is more correct to say that the stack region to be used next is one location less than the stack pointer's register address.


What is the 16 bit register in the 8051?

pc and stack pointer


What function for stack pointer of the register?

A stack pointer is a register pointing to the top of a stack. It supports the fundamental stack manipulations (push and pop) in an efficient manner. Most micro processor hardware has build-in hardware support for stack pointers, typically both in form of dedicated stack pointer registers and in form of addressing modes which support the creation and maintenance of stacks through general-purpose pointer registers. In software, many programming languages feature constructs suited for implementation of stack pointers within the high-level language (such as post-increment and pre-decrement operators in C).


What is the function of the stack counter?

Its not a stack counter - its a stack pointer. The stack pointer is a register that points to the top of the stack. In the Intel configuration, it points to the next item to be popped off the stack. To push an item requires that the stack pointer be decremented first, and then the item is written. The inverse operation - the pop - requires read then increment.


What is Difference between index register and stack pointer?

An index register contains an address that can be used during effective address generation, often along with an offset in the instruction or in another register. This is most useful when accessing elements of arrays or structures. A stack pointer is a specialized index register that points to a region of memory that can store temporary elements, in a last-in-first-out structure, such as return addresses, parameters, and local storage for function calls.