News:

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

Main Menu

user written macros

Started by pgw001, March 07, 2014, 09:08:23 AM

Previous topic - Next topic

pgw001

Folks, thanks to your previous assistance I now have masm working well within the Visual Studio IDE

My efforts have moved to writing some macros in my development environment, this has attracted the
following questions:
1) is there an option to see the code generated by the macro, at present the source code and line no's
as seen by the IDE are not the same as reported by any masm error reports

2) is it possible to pass a constant as a parameter to a macro

Thanks in advance

jj2007

1) a.use assembler option /Fl to generate a *.lst file
1) b. use Olly with /Zi for the assembler and /debug for the linker

2) sure, post an example if you have problems

To see what is possible with macros, see MasmBasic (after installation: \Masm32\MasmBasic\MasmBasic.inc) or (with a different style) qWord's SmplMath.
Last but not least there are the built-in Masm32 macros in \Masm32\macros\macros.asm.