summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-01 22:53:15 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-01 22:53:15 -0700
commit677befc4614e75eb6f8c35c29254d3eebb3d149d (patch)
tree9a37ae1f268d4d6914bb7c94ee3d424947f5b52b
parent00fe4e8fdef5ea73459157eead035f10e17284e1 (diff)
downloadnasm-677befc4614e75eb6f8c35c29254d3eebb3d149d.tar.gz
Document that underscores in numbers is permitted.
-rw-r--r--doc/nasmdoc.src7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 58db3129..07a60053 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -1431,6 +1431,9 @@ that the \I{$, prefix}\c{$} prefix does double duty as a prefix on
identifiers (see \k{syntax}), so a hex number prefixed with a \c{$}
sign must have a digit after the \c{$} rather than a letter.
+Numeric constants can have underscores (\c{_}) interspersed to break
+up long strings.
+
Some examples:
\c mov ax,100 ; decimal
@@ -1440,6 +1443,7 @@ Some examples:
\c mov ax,777q ; octal
\c mov ax,777o ; octal again
\c mov ax,10010011b ; binary
+\c mov ax,1001_0011b ; same binary constant
\S{chrconst} \i{Character Constants}
@@ -1536,6 +1540,9 @@ digits, period, optionally more hexadeximal digits, then optionally a
\c{P} followed by a \e{binary} (not hexadecimal) exponent in decimal
notation.
+Underscores to break up groups of digits are permitted in
+floating-point constants as well.
+
Some examples:
\c db -0.2 ; "Quarter precision"