ida中retn4的含义

Meaning of retn4 in ida

我正在尝试理解一个 DLL。我是 IDA 反汇编程序的新手。我遇到了这个指令。下面的指令是什么意思?我在 IDA 5.0 免费软件中看到了这个。

返回 4

retn in 是汇编指令 "return near" 而不是 retf = return far。根据https://courses.engr.illinois.edu/ECE390/archive/fall2001/books/labmanual/inst-ref-ret.html retn X instruction is return + move the stack pointer X more bytes. This is typcially used by methods with calling conventions where callee is responsible for removing passed arguments from the stack such as __stdcall.