Windows 代码的作用和应该接收的输入
这是一道集合考试的题。 问题是: 以下代码的输入应该是什么? 下面的代码是做什么的 我试着用笔和纸来追踪它,但我不知道它是做什么的,它应该接受什么样的论点Windows 代码的作用和应该接收的输入,windows,winapi,assembly,x86,intel,Windows,Winapi,Assembly,X86,Intel,这是一道集合考试的题。 问题是: 以下代码的输入应该是什么? 下面的代码是做什么的 我试着用笔和纸来追踪它,但我不知道它是做什么的,它应该接受什么样的论点 有什么想法吗?此函数实现N向切换,调用p指令,然后立即调用函数数组 ... ; Here: EAX = index of function (0..N-1) call P dd N ; number of functions in the array dd Func0_Addr, Func1_Addr, ..., Func(N-1)_Add
有什么想法吗?此函数实现N向切换,
调用p
指令,然后立即调用函数数组
...
; Here: EAX = index of function (0..N-1)
call P
dd N ; number of functions in the array
dd Func0_Addr, Func1_Addr, ..., Func(N-1)_Addr ; array
; Return address after function terminated
...
这取决于ABI,例如WIN32和Linux x86有不同的调用约定。好的,我现在已经为您修复了标记。