Author Topic: Nested %rep in NASM 0.98.39  (Read 8872 times)

nobody

  • Guest
Nested %rep in NASM 0.98.39
« on: August 18, 2007, 06:28:12 PM »
I'm using NASM ver. 0.98.39 compiled January 16,2005.
Are nested %rep/%endrep blocks allowed in MACROs in this version?
After many hours of frustration I've come to the conclusion that
they are not.
Thanks in advance for any attention to this.
afk

nobody

  • Guest
Re: Nested %rep in NASM 0.98.39
« Reply #1 on: August 18, 2007, 08:16:45 PM »
I'm no expert in Nasm macros, and I don't know the answer. But I tried it, and it seems to work fine. What symptoms are you seeing?

Best,
Frank

nobody

  • Guest
Re: Nested %rep in NASM 0.98.39
« Reply #2 on: August 18, 2007, 11:05:53 PM »
Hi Frank,
In the process of simplifying the code to post here I answered my own
question.  There's no problem with NASM and nesting. The problem
was in the conditional code which I wrote _inside_ of the nested
loop. (What a surprise. heh -heh)

It had to do with the way I accessed the parameters ( %1 vs. [%1] for
example. ) I find NASM to have a strange sense of error notification.
Many times the error messages are generated by code miles away from
the actual problem. Other times it's right on top of the problem.

Thanks for your quick response and the time you took to check it out.
I'm new to macros and sometimes I'm still baffled by the actual code
which I see in the debugger so I'll probably be back. Be prepared ;-)
Austin