Home  Site Map  Instruction Index 

RET  -  Return Instruction


The RET instruction is used to end use of a sub routine and return to the next intruction after the caller.

There are several RET Instructions


Instruction  Description16 bit Machine
Code
RET; A near return from within the same segment.C3
RET; A far return from a different segment from the
; caller.
CB
RET 0x04; A near return from within the same segment,
; operand specifies additional stack items to
; be removed on return.
C2 04
RET 0x04; A far return from a different segment from the
; caller, operand specifies additional stack
; items to be removed on return.
CA 04