NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Nested %rep in NASM 0.98.39
« previous
next »
Print
Pages: [
1
]
Author
Topic: Nested %rep in NASM 0.98.39 (Read 15783 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
Logged
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
Logged
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
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Nested %rep in NASM 0.98.39