Discussion Forum

How can I relocate Stack?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Kiran Sutar
Posted
4-Jul-2006 05:03 GMT
Toolset
C51
New! How can I relocate Stack?
Hi Members,
I have developed many products based on MCS51, but this is a peculiar one.
This product is AT89S52 based. All of the global variables are in Internal RAM, I do not have any external RAM in this product. I am short of just a few bytes more. But the stack is always placed at #080h, can I move this stack a little further away to say #090h. If yes then, How can this be done?

Bye and Thanks,
From Mr. Kiran V. Sutar
Read-Only
Author
Reinhard Keil
Posted
4-Jul-2006 08:26 GMT
Toolset
C51
New! RE: How can I relocate Stack?
The recommended method is:
http://www.keil.com/support/docs/2094.htm

If you want to use a fixed stack segment, this will work:
http://www.keil.com/support/docs/2638.htm

Next Thread | Thread List | Previous Thread Start a Thread | Settings