From 677befc4614e75eb6f8c35c29254d3eebb3d149d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 1 Jun 2008 22:53:15 -0700 Subject: [PATCH] Document that underscores in numbers is permitted. --- doc/nasmdoc.src | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- 2.11.4.GIT