"Graphics_Demo" stack space?
So I was taking a closer look at our "Graphics_Demo" and noticed something interesting...
The two buffers are $3000 each with one specified at an address of $5000 and the other at $2000.
But, the one at $5000 fills all memory including the·limit of $8000, with is normally used for stack space...
So, how does this program work without any stack space?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
The two buffers are $3000 each with one specified at an address of $5000 and the other at $2000.
But, the one at $5000 fills all memory including the·limit of $8000, with is normally used for stack space...
So, how does this program work without any stack space?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Stack starts at $1BB4
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Missed it by ->" "<- that much!
_stack = ($3000 + $3000 + 100) >> 2 'accomodate display memory and stack
Still, it's funny how the stack starts from the beginning of this space instead of the end...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Not really. The stack follows the variables always. The display buffers are not allocated as variables, but simply unallocated RAM that the code agrees on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Missed it by ->" "<- that much!
But, the way you describe it makes more sense given the stack space address of $1BB4 that you found...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Not immediately after the program. Its like this
- Header ($0-$F)
- Program (PUB/PRI/DAT)
- Variables (VAR)
- Stack
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Missed it by ->" "<- that much!