Author Topic: too stupid to use @\{  (Read 14589 times)

nobody

  • Guest
too stupid to use @\{
« 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!

nasm64developer

  • Guest
Re: too stupid to use @\{
« Reply #1 on: March 03, 2005, 06:58:18 PM »
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

nobody

  • Guest
Re: too stupid to use @\{
« Reply #2 on: March 03, 2005, 07:20:01 PM »
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

nobody

  • Guest
Re: too stupid to use @\{
« Reply #3 on: March 03, 2005, 10:36:17 PM »
Thanks a lot guy!!! That's works perfect.

(I found that @\{ in the "nasmdoc.pdf"  in 4.3 Multi-Line Macros p. 45...)