??? 08/26/04 13:24 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#76446 - RE: return address Responding to: ???'s previous message |
The return address is saved onto the top of your stack when you use statement LCALL FUNC. When returning from FUNC this address is poped back from the stack i.e. when RET instruction is fetched
However there is no address saving when using jumps such as LJMP FUNC. and if you use RET in a jump your micro will pop some errorneous thing from stack and program will most probably hang or behave errorneous. By default your stack is initialised or starts at location 08H in Internal RAM. You can set the stack start i.e. stack pointer at any RAM location by using following statement. MOV SP,#xxxxh Regards Prahlad Purohit |
Topic | Author | Date |
return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
How many times...? | 01/01/70 00:00 | |
RE: How many times...? | 01/01/70 00:00 | |
RE: How many times...? | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
RE: return address | 01/01/70 00:00 | |
Why does it bother you?![]() | 01/01/70 00:00 |