ret- This is an instruction to return from the procedure. Thus, it basically issues the return address from the stack to the EIP register.
the prefix is lhere to say that he is far from the procedure. In this case, the command first issues the value from the stack to the EIP register, and then issues the second value to the CS register.
w , , 16 .
:
pushw %ds
pushw $6f
lretw
6:
6:. , : ds , 6 lretw. , , 6 cs ds. 6 cs.
http://www.intel.com/design/intarch/manuals/243191.htm, , , , .
source
share