This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Stack Pointer Limitation

Hello,
The stack pointer for the chip I'm using is 8bits (address 256 bytes max). Is there any way to get around this limitation so I can have larger stack space? (without changing chips)
Regards,
KC

Parents
  • But for XBPSTACKTOP, we are setting the starting value (and it grows down), so wouldnt this cause an overlap later.

    Only if you use up all of the stack space.

    If you have 64K of XDATA, set the top of the XBPSTACK at 0xFFFF. That gives you 64K-(xdata variables) of stack space. Won't this be enough?

    Jon

Reply
  • But for XBPSTACKTOP, we are setting the starting value (and it grows down), so wouldnt this cause an overlap later.

    Only if you use up all of the stack space.

    If you have 64K of XDATA, set the top of the XBPSTACK at 0xFFFF. That gives you 64K-(xdata variables) of stack space. Won't this be enough?

    Jon

Children
No data