??? 03/30/08 18:26 Read: times |
#152718 - Yes, but... Responding to: ???'s previous message |
Deep Veer said:
pls tell me if it is possible to come out of a called ( CALL) routine before RET instruction and the RET is just ignored. Sure. The return address is just stored on the stack so you can effectively ignore the original call by popping those two bytes off the stack. It's pretty bad practice, though, and I'd suggest looking for a different way of accomplishing whatever it is you need to do. Especially if you're using interrupts. It's easy to mess up the stack and program flow by doing things like this. Regards, Craig Steiner |
Topic | Author | Date |
call routine problem | 01/01/70 00:00 | |
Yes, but... | 01/01/70 00:00 | |
call routine | 01/01/70 00:00 | |
what do you mean by "come out"? | 01/01/70 00:00 | |
call routine | 01/01/70 00:00 | |
Does not ignore RET but... | 01/01/70 00:00 | |
Good implementation | 01/01/70 00:00 | |
one of the reasons might be... | 01/01/70 00:00 | |
call routine | 01/01/70 00:00 | |
please explain... | 01/01/70 00:00 | |
Two things need explaining | 01/01/70 00:00 | |
Processor doesn't just ignore instructions! | 01/01/70 00:00 | |
I guess ... | 01/01/70 00:00 | |
call routine | 01/01/70 00:00 | |
use sjmp ljmp ajmp![]() | 01/01/70 00:00 |