0

I'm writing a procedure with two parameters, one is a number and the other is an address to an array. How can I write the prototype for this? I was trying:

Print proto dword: Asz, Addr Arrayn

as well as:

 Print proto dword: Asz, OFFSET Arrayn

but neither of these are working for me.

Google Z
  • 5
  • 3

1 Answers1

0

Try

Print proto Asz:dword, Arrayn:ptr byte

or if near is needed

Print proto Asz:dword, Arrayn:near ptr byte

The procedure (proc) will need the same parameter types.

rcgldr
  • 27,407
  • 3
  • 36
  • 61
  • Hey, thanks a lot for the reply! Can you guide me on how I call invoke on it? I have now used the prototype: Print proto Asz:dword, Arrayn:ptr byte When calling the function I use: invoke Print number, ArrayX (With Arrayx and number being declared respectably) The way I am calling is incorrect for sure and I receive the error : error A2206: missing operator in expression – Google Z Nov 04 '19 at 02:50
  • @GoogleZ - you may need to use "offset ArrayX" for the second parameter. – rcgldr Nov 04 '19 at 04:34