The RET and RETF instructions

Return from a procedure.

Format of the RET and RETF instructions

InstructionDescription
RETReturn from a near procedure (pops IP).
RETFReturn from a far procedure (pops IP and CS).
RET imm16Return from a near procedure and add imm16 to SP (parameter cleanup).
RETF imm16Return from a far procedure and add imm16 to SP.

Processor status flags

CF
No
PF
No
AF
No
ZF
No
SF
No
TF
No
IF
No
DF
No
OF
No