News:

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

Main Menu

Help calling a function

Started by felipe, April 09, 2018, 02:39:56 PM

Previous topic - Next topic

aw27

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.

hutch--

Guys,

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.