Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.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
Assembly 在程序集中使用地址作为参数_Assembly_Procedure_Masm_Masm32 - Fatal编程技术网

Assembly 在程序集中使用地址作为参数

Assembly 在程序集中使用地址作为参数,assembly,procedure,masm,masm32,Assembly,Procedure,Masm,Masm32,我正在写一个有两个参数的过程,一个是数字,另一个是数组的地址。我怎样才能为它编写原型? 我试着: Print proto dword: Asz, Addr Arrayn 以及: Print proto dword: Asz, OFFSET Arrayn 但这两个都不适合我 试试看 Print proto Asz:dword, Arrayn:ptr byte 或者如果需要的话 Print proto Asz:dword, Arrayn:near ptr byte 过程(proc)将需要相

我正在写一个有两个参数的过程,一个是数字,另一个是数组的地址。我怎样才能为它编写原型? 我试着:

Print proto dword: Asz, Addr Arrayn
以及:

 Print proto dword: Asz, OFFSET Arrayn
但这两个都不适合我

试试看

Print proto Asz:dword, Arrayn:ptr byte
或者如果需要的话

Print proto Asz:dword, Arrayn:near ptr byte

过程(proc)将需要相同的参数类型。

嘿,非常感谢您的回复!你能指导我如何调用它吗?我现在在调用我使用的函数时使用了prototype:Print proto Asz:dword,Arrayn:ptr byte:invoke Print number,ArrayX(ArrayX和number分别声明)我调用的方式肯定是不正确的,我收到了错误:error A2206:中缺少运算符expression@GoogleZ-您可能需要使用“偏移阵列”对于第二个参数。