This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Diff. between RET & RETI


What is difference between RETI and

RET?

regards,
peter.

Parents
  • The difference is slight, both take the return address from the stack. What is different is that RETI releases the interrupts of the same level of priority than the interrupt that has caused the branch, and RET doesn't. Sometimes it can be useful to use RET instead of RETI - I did it several times and I also saw it in PHILIPS' Application Notes.
    Regards,
    Michael.

Reply
  • The difference is slight, both take the return address from the stack. What is different is that RETI releases the interrupts of the same level of priority than the interrupt that has caused the branch, and RET doesn't. Sometimes it can be useful to use RET instead of RETI - I did it several times and I also saw it in PHILIPS' Application Notes.
    Regards,
    Michael.

Children