??? 06/26/06 15:17 Read: times Msg Score: +1 +1 Good Question |
#119112 - best practice regarding SP |
I've been figuring out the highest byte I use for variables and setting SP to it. For example, the highest byte I use in one program is 0x21, for flags. During initialization, I set SP to 0x21. I figure that this gives SP the most room to grow and that it cannot possibly grow over my variables, because my variables are below the stack and the stack is growing upward. Is this reasonable? |
Topic | Author | Date |
best practice regarding SP | 01/01/70 00:00 | |
an easier method | 01/01/70 00:00 | |
the other way round | 01/01/70 00:00 | |
as a general rule | 01/01/70 00:00 | |
Good rule | 01/01/70 00:00 | |
on stack and data | 01/01/70 00:00 | |
Estimating stack usage | 01/01/70 00:00 | |
The future is now | 01/01/70 00:00 | |
I'd like it also as interrupt... | 01/01/70 00:00 | |
where would you store the interrupt retu | 01/01/70 00:00 | |
what return??? | 01/01/70 00:00 | |
then don't call it an interrupt | 01/01/70 00:00 | |
OK, call it... exception? | 01/01/70 00:00 | |
Trap perhaps? | 01/01/70 00:00 | |
trap! | 01/01/70 00:00 | |
the root | 01/01/70 00:00 | |
Fair point | 01/01/70 00:00 | |
signaling | 01/01/70 00:00 | |
avost?![]() | 01/01/70 00:00 |