Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 代码的作用和应该接收的输入_Windows_Winapi_Assembly_X86_Intel - Fatal编程技术网

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有不同的调用约定。好的,我现在已经为您修复了标记。