News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

macro: store parameter string and value

Started by korte, October 11, 2007, 11:53:10 AM

Previous topic - Next topic

korte


I want special macro.

calling:

macroname sampleparam

want output:

db "samplename" ; store parameter variable name as sting
mov eax,[sampleparam]


2. output no problem, but how to declare macro, store label as string

only 1 macro and 1 parameter good and nice.

thx


MichaelW

Several such macros are included in the MASM32 macros.asm. See SADD, CTXT, CADD, and chr$.
eschew obfuscation

Vortex

Hi korte,

Have a look at MASM Programmer's Guide :

http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ProgrammersGuide/Chap_09.htm

It provides all the technical information you need.