- What is the difference between assembly commands RET
& RETI ?
RET is just a return from subroutine. RETI is two commands in one. RETI is EI / RET in
that order. The command EI doesn't take effect immediately but DI does. EI takes effect
following the instruction that follows it.