diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-07-28 13:57:01 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-07-28 18:00:24 +0400 |
commit | dea6c7a97440a926dd58ecb32374535b6e99ad6f (patch) | |
tree | 5e61a05a816947c9b772118bf159ae1d35d4d0b6 /doc | |
parent | d143f4f39c9f1e887c0b96e1f5b6a8269ee7f4ec (diff) | |
download | nasm-dea6c7a97440a926dd58ecb32374535b6e99ad6f.tar.gz nasm-dea6c7a97440a926dd58ecb32374535b6e99ad6f.tar.bz2 nasm-dea6c7a97440a926dd58ecb32374535b6e99ad6f.zip |
doc: Updates on macro ranges
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nasmdoc.src | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index 41055e9..ab343e5 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -2561,9 +2561,9 @@ See \k{sectmac} for a better way to write the above macro. \S{mlmacrange} \i{Macro Parameters Range} -NASM also allows you to expand parameters via special construction \c{%\{x:y\}} +NASM allows you to expand parameters via special construction \c{%\{x:y\}} where \c{x} is the first parameter index and \c{y} is the last. Any index can -be either negative or positive. Though the indices must never be zero. +be either negative or positive but must never be zero. For example @@ -2599,8 +2599,8 @@ expands to \c{6,5,4} range. Note that NASM uses \i{comma} to separate parameters being expanded. -By the way, here is a trick - you might use the index \c{%{-1:-1}} gives -you the \i{last} argument passed to a macro. +By the way, here is a trick - you might use the index \c{%{-1:-1}} +which gives you the \i{last} argument passed to a macro. \S{mlmacdef} \i{Default Macro Parameters} |