ret - Return from subroutine

ret - Return from subroutine

Calling Format

ret

Operands

None.

Overview

Jumps to the location from which one of the call instructions was invoked.
This instruction is not valid if a call instruction is not currently active. (Unlike nop, this does not involve any processing.)
If a label is to be called as a subroutine by one of the call instructions, this instruction must be called after that label has been set.

Operation

if ( retaddr )
    pc = retaddr

Code Example

callb   b0, subfunction0

subfunction0:
..
ret

Revision History

2011/12/20
Initial version.

CONFIDENTIAL