retnw

8086 and later

Return from Procedure Call

retnw | retnw imm16
  • RET, and its exact synonym RETN, pop IP or EIP from the stack and transfer control to the new address. Optionally, if a numeric second operand is provided, they increment the stack pointer by a further imm16 bytes after popping the return address.

  • RETF executes a far return: after popping IP/EIP, it then pops CS, and then increments the stack pointer by the optional argument if present.

Loading...

Forms

Every form of retnw the assembler accepts.

FormSinceNotes
retnw 8086
retnw imm168086