summaryrefslogtreecommitdiff
path: root/doc/nasmdoc.src
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-25 15:29:37 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-25 15:29:37 -0800
commit9fa2e72997b698107b7c5a02e8f03e84e8d8fb74 (patch)
tree7de3095e072a8b4a88631fc31055b17ab82a375f /doc/nasmdoc.src
parent5a24fdd547f4c02fe46c37b84a020febfa41bfd2 (diff)
downloadnasm-9fa2e72997b698107b7c5a02e8f03e84e8d8fb74.tar.gz
nasm-9fa2e72997b698107b7c5a02e8f03e84e8d8fb74.tar.bz2
nasm-9fa2e72997b698107b7c5a02e8f03e84e8d8fb74.zip
Add support for UTF-16BE and UTF-32BE
Add support for bigendian UTF-16 and UTF-32, and (for symmetry) add explicitly littleendian operators. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'doc/nasmdoc.src')
-rw-r--r--doc/nasmdoc.src15
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 217c12a..3c912ee 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -1596,9 +1596,12 @@ operands to \c{DW}, and so forth.
\S{unicode} \I{UTF-16}\I{UTF-32}\i{Unicode} Strings
-The special operators \i\c{__utf16__} and \i\c{__utf32__} allows
-definition of Unicode strings. They take a string in UTF-8 format and
-converts it to (littleendian) UTF-16 or UTF-32, respectively.
+The special operators \i\c{__utf16__}, \i\c{__utf16le__},
+\i\c{__utf16be__}, \i\c{__utf32__}, \i\c{__utf32le__} and
+\i\c{__utf32be__} allows definition of Unicode strings. They take a
+string in UTF-8 format and converts it to UTF-16 or UTF-32,
+respectively. Unless the \c{be} forms are specified, the output is
+littleendian.
For example:
@@ -1608,9 +1611,9 @@ For example:
\c dw u('C:\WINDOWS'), 0 ; Pathname in UTF-16
\c dd w(`A + B = \u206a`), 0 ; String in UTF-32
-\c{__utf16__} and \c{__utf32__} can be applied either to strings
-passed to the \c{DB} family instructions, or to character constants in
-an expression context.
+The UTF operators can be applied either to strings passed to the
+\c{DB} family instructions, or to character constants in an expression
+context.
\S{fltconst} \I{floating-point, constants}Floating-Point Constants