Can anyone show me one or two examples of macros in assembly, best if in Masm context.plus some explanations.
Is macros in masm almost similar to macros in C?
Thanks.
Printable View
Can anyone show me one or two examples of macros in assembly, best if in Masm context.plus some explanations.
Is macros in masm almost similar to macros in C?
Thanks.
Two macros in 80x86 assembly using the MASM syntax.Code:
INITZ MACRO
MOV AX, @data
MOV DS, AX
MOV ES, AX
ENDM
FINISH MACRO
MOV AX, 4C00H
INT 21H
ENDM
Macros in assembler are placed directly into the code like macros in C++ (and I think C too.)