The MASM Forum

General => The Workshop => Topic started by: pgw001 on March 07, 2014, 09:08:23 AM

Title: user written macros
Post by: pgw001 on March 07, 2014, 09:08:23 AM
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
Title: Re: user written macros
Post by: jj2007 on March 07, 2014, 12:23:35 PM
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 (http://www.webalice.it/jj2006/MasmBasicQuickReference.htm) (after installation: \Masm32\MasmBasic\MasmBasic.inc) or (with a different style) qWord's SmplMath (http://sourceforge.net/projects/smplmath/).
Last but not least there are the built-in Masm32 macros in \Masm32\macros\macros.asm.