NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: nobody on March 03, 2005, 11:31:46 AM
-
Hi guys!
I want to pass a parameter to a muli-line maco with contains a comma ("mov bp,sp").
So I tried something like (which I found in the docs)
segment code
org 100h
%macro testy 2+
%1
%2
%endmacro
testy @\{mov bp,sp@\},clc
mov ah,4ch
int 21h
But that doesn't work at all...
What am I doing wrong???
Cheers!
-
Where did you get that "@\" from?
I am asking because that is bogus.
Remove it, and you example works:
%macro testy 2+
%1
%2
%endmacro
testy {mov bp,sp},clc
-
I'm not sure *where* in the docs you're seeing the "@/{" syntax - just "{...}" seems to work...
testy {mov bp, sp}, {sub sp, 8}
for example...
Best,
Frank
-
Thanks a lot guy!!! That's works perfect.
(I found that @\{ in the "nasmdoc.pdf" in 4.3 Multi-Line Macros p. 45...)