Author Topic: Decorated name with Import and call  (Read 10537 times)

Offline Borneq

  • Jr. Member
  • *
  • Posts: 26
Decorated name with Import and call
« 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"?

Offline Keith Kanios

  • Full Member
  • **
  • Posts: 383
  • Country: us
    • Personal Homepage
Re: Decorated name with Import and call
« Reply #1 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.