Author Topic: Help calling a function  (Read 315 times)


  • Member
  • *****
  • Posts: 1124
  • Let's Make ASM Great Again!
Re: Help calling a function
« Reply #15 on: April 13, 2018, 05:07:09 PM »
In ASM, dealing with COM, and in particular with DirectX, is not easy without macros.
Since I don't like macros as well, I very rarely try to do it in ASM.
UASM has a nice framework for that, I tried it and helped fix bugs, however the philosophy is the same - obfuscate the complexity - which in my opinion is against the spirit of ASM.
Better we use a high-level language if we don't care about the nittty gritties.


  • Administrator
  • Member
  • ******
  • Posts: 5246
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Help calling a function
« Reply #16 on: April 18, 2018, 12:03:16 AM »

I think tastes in coding design are many and having to deal with high level structures is simply part of writing 32 and 64 bit assembler and generally the documentation for any Windows version is written in C so we also have to translate this to a MASM format, something that folks who have worked in MASM for any length of time are experienced at doing.

As far as using macros, some prefer to do all of their coding in raw mnemonics and in fact this is probably the best technique for high performance algorithms but there is a vast amount of Windows code where there is no advantage at all manually coding stuff that is finally just hack OS code so using macros in this context makes sense to end up with clear coding of what is often messy OS code.

This much I would ask of all of our more experienced members, remember how hard it was when we all started years ago and give folks who are starting to write this style of code a fair go.
hutch at movsd dot com    :biggrin:  :biggrin: