-
RET, and its exact synonymRETN, popIPorEIPfrom the stack and transfer control to the new address. Optionally, if a numeric second operand is provided, they increment the stack pointer by a furtherimm16bytes after popping the return address. -
RETFexecutes a far return: after poppingIP/EIP, it then popsCS, and then increments the stack pointer by the optional argument if present.
retnw
8086 and laterReturn from Procedure Call
retnw | retnw imm16Loading...
Forms
Every form of retnw the assembler accepts, from NASM's own instruction table.
The second column is the processor that introduced the form; a badge marks a form that needs
an extension, that is lockable, or that long mode dropped.
| Form | Since | Notes |
|---|---|---|
| retnw | 8086 | |
| retnw imm16 | 8086 |