From dea6c7a97440a926dd58ecb32374535b6e99ad6f Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 28 Jul 2010 13:57:01 +0400 Subject: doc: Updates on macro ranges Signed-off-by: Cyrill Gorcunov --- doc/nasmdoc.src | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index 41055e96..ab343e52 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} -- cgit v1.2.1