News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

"Invoke" 64-bit

Started by Greg_M, June 18, 2025, 03:52:31 PM

Previous topic - Next topic

Greg_M

Hi, I'm new to MASM and the MASM forums. The "INVOKE" documentation states "(32-bit MASM Only) ...".
https://learn.microsoft.com/en-us/cpp/assembler/masm/invoke?view=msvc-170

I see code examples of INVOKE here, so I'm seeking understanding.

Update: Apparently, MASM INVOKE isn't applicable to 64-bit MASM (ml64.exe), but alternatives, such as macros, are.

jj2007

Hi Greg,

Microsoft crippled ML64, so invoke, .if .else .endif, .Repeat ... .Until and others are no longer built-in. Therefore you basically have three options:
1. Bare metal: no macros (for Real MenTM)
2. The macros developed by Hutch and Vasily in the Masm64 package
3. UAsm or JWasm

Note that Vasily's invoke does not check for the number and/or type of parameters passed. JBasic's jinvoke does, but it's work in progress.

Welcome to the forum :thup:

Greg_M

OK, thanks very much, including for the well-stated, and thorough number of, options!