ret 是 cdecl用的,retn 是stdcall,宏汇编写 ret ,编译器根据调用预定将 ret 编译成 ret 还是 retn
抄自 Intel Opecodes And Mnemonics RET/RETF - Return From Procedure Usage: RET nBytes RETF nBytes RETN nBytes Modifies flags: None Transfers control from a procedure back to the instruction address saved on the stack. "n bytes" is an optional number of bytes to release. Far returns pop the IP followed by the CS, while near returns pop only the IP register. Clocks Size
C3 RET Near return to calling procedure CB RET Far return to calling procedure
C2 iw RET imm16 Near return to calling procedure and pop imm16 bytes from stack CA iw RET imm16 Far return to calling procedure and pop imm16 bytes from stack