| ??? 08/31/02 21:07 Read: times |
#28328 - stack pointer question... |
In the tutorial I read: "The SP SFR, on startup, is initialized to 07h."
My question is: if my program runs in a continuous loop (eg. read a key, write a message in display, goes to the begining of program to way another key press and goes on...) the SP will overflow due push's and pop's? If it overflows, will it start at 00h (I think it's the most logical) or at 07h? To avoid that overflow I should do, in the beggining of main loop, something like "MOV SP, #2Fh", to clear the SP work area, right? TIA orlando |
| Topic | Author | Date |
| stack pointer question... | 01/01/70 00:00 | |
| RE: stack pointer question... | 01/01/70 00:00 | |
| RE: stack pointer question... | 01/01/70 00:00 | |
RE: stack pointer question... | 01/01/70 00:00 |



