@@ -2255,6 +2255,17 @@ and \i{detokenization} are performed for the arguments of the
2255
2255
directives.
2256
2256
2257
2257
2258
+ \S{pcdirect} \i{Directives} processing
2259
+
2260
+ Remaining preprocessor \i{directives} are processed. It is specific
2261
+ to each directive to what extend the above expansions or the ones
2262
+ specified in \k{pcfinal} are performed on their arguments.
2263
+
2264
+ It is specific to each directive to what extent \i{inline expansions}
2265
+ and \i{detokenization} are performed for the arguments of the
2266
+ directives.
2267
+
2268
+
2258
2269
\S{pcsmacro} \i{Inline expansions} and other \I{preprocessor directives}directives
2259
2270
2260
2271
In this step, the following expansions are performed on each line:
@@ -2276,10 +2287,6 @@ below), the parameters to that macro are expanded at this time. See
2276
2287
\b \i{Macro-local labels} are converted into unique strings, see
2277
2288
\k{maclocal}.
2278
2289
2279
- \b Remaining preprocessor \i{directives} are processed. It is specific
2280
- to each directive to what extend the above expansions or the ones
2281
- specified in \k{pcfinal} are performed on their arguments.
2282
-
2283
2290
2284
2291
\S{pcmmacro} \i{Multi-Line Macro Expansion}
2285
2292
@@ -2923,6 +2930,26 @@ argument to the conditional using \c{\{\}}:
2923
2930
\c %endif
2924
2931
2925
2932
2933
+ \S{f_num} \i\c{%num()} Function
2934
+
2935
+ The \c{%num()} function evaluates its arguments as expressions, and
2936
+ then produces a quoted string encoding the first argument as an
2937
+ \e{unsigned} integer. The second argument is the encoding base (from 2
2938
+ to 64, default 10) and the third argument is the desired number of
2939
+ digits (max 253, default -1).
2940
+
2941
+ Only the first argument is required.
2942
+
2943
+ If the number of digits is negative, NASM will add additional digits
2944
+ if needed, if positive the string is truncated to the number of digits
2945
+ specified. 0 is treated as -1, except that the input number 0
2946
+ generates an empty string (thus, the first digit will never be zero.)
2947
+
2948
+ The full 64-symbol set used is, in order:
2949
+
2950
+ \c 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@_
2951
+
2952
+
2926
2953
\S{f_sel} \i\c{%sel()} Function
2927
2954
2928
2955
The \c{%sel()} function evaluates its first argument as an
0 commit comments