NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: Borneq on December 13, 2012, 10:45:52 PM

Title: Decorated name with Import and call
Post by: Borneq on December 13, 2012, 10:45:52 PM
When I import function, I must write Invoke, not call because is problem with name decoration. How I can import or call function by "call"?
Title: Re: Decorated name with Import and call
Post by: Keith Kanios on December 14, 2012, 12:24:28 AM
I think you are conflating NASM and NASMX.

If you want to see how NASMX turns everything to regular NASM code, use NASM's preprocess only (-E) mode and look at the results... you will find the full call decorations you are looking for.

Otherwise, if are merely trying to add syntactic sugar to call so that it works similar to NASMX's invoke, write a macro for "call" to do so. NASM allows you to "override" or "overload" instructions (identifiers) so that similarly named macros take precedence over the actual instruction.