??? 03/16/07 18:24 Read: times |
#135139 - some contra Responding to: ???'s previous message |
hi,
Daniel Contarino said:
No, no return address in the stack. But in this short program, with no data space used, stack is allocated in data. And data positions are cleared by Startup. So, the unbalanced RET will point to 0x0000.
Daniel Well, I agree but: - some projects may not utilize startup.asm; - other projects may use registers` banks or data from 0x08; - RET to 0x0000 does not mean hardware reset (!). Regards, Oleg |
Topic | Author | Date |
Help with the delay program | 01/01/70 00:00 | |
What does it do? | 01/01/70 00:00 | |
Hints. | 01/01/70 00:00 | |
Check with debugger | 01/01/70 00:00 | |
could this be it ? | 01/01/70 00:00 | |
Difficult to see | 01/01/70 00:00 | |
that depends | 01/01/70 00:00 | |
RET in main | 01/01/70 00:00 | |
nope - and compiler dependent | 01/01/70 00:00 | |
RET in functions | 01/01/70 00:00 | |
how do you know that ? | 01/01/70 00:00 | |
Because of Startup | 01/01/70 00:00 | |
ah | 01/01/70 00:00 | |
some contra | 01/01/70 00:00 | |
in other words - and who cares![]() | 01/01/70 00:00 |