Currently the preprocessor supports %0, as well
as %+n and %-n. Refer to the manual for details.
Now, since %+0 and %-0 never expand to anything
useful, they can be assigned to another meaning.
For example, they could be used to refer to the
number of completed or remaining iterations of a
preprocessor loop. (Granted, the user can track
this information on his/her own by maintaining a
set of two preprocessor variables for a loop --
but a NASM-provided means seems much nicer. :-)
Attached find the necessary changes (note: these
require SF RFE #872331), as well as testcases.
changes
testcases
Logged In: YES
user_id=804543
See SF RFE #1365092 for newer code.