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

Hello...

I need to do a malloc-like function in XDATA with stack-like characteristics. Please advise on where I can find information regarding the stack pointer that is inherent in the RAM of the card.

I am currently using SmartMX P5CT072 card. Have tried to search the manuals and files available online but to no avail.

Thanks a million in advanced. =)

  • Section 3 (Language Extensions) of the C51 manual discusses the "software stack" for the various memory models in the Reentrant Functions topic. For the large memory model, the stack pointer is 2 bytes and called ?C_XBP. See STARTUP.A51 for allocating a stack area.