summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJin Kyu Song <jin.kyu.song@intel.com>2013-12-18 22:01:14 -0800
committerJin Kyu Song <jin.kyu.song@intel.com>2013-12-18 22:38:44 -0800
commit26ddad67ca57bb45e2bd45740309265ed2a9502d (patch)
treeeb2a82ef68101ce5936809ffb13ec1a1bf314a36 /doc
parentb0c729baeb2de639ff79951d976817dd6414a0a5 (diff)
downloadnasm-26ddad67ca57bb45e2bd45740309265ed2a9502d.tar.gz
nasm-26ddad67ca57bb45e2bd45740309265ed2a9502d.tar.bz2
nasm-26ddad67ca57bb45e2bd45740309265ed2a9502d.zip
nosplit: Generate index-only EA only when a multiplier is used.
[nosplit eax] has been encoded as [eax*1+0] since 0.98.34. But this seems like unexpected behavior. So only when a register is multiplied, that will be treated as an index. ([nosplit eax*1] -> [eax*1+0]) Document is updated accordingly. Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/nasmdoc.src3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 8554a34..dbf8e70 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -1459,7 +1459,8 @@ that allows the offset field to be absent and space to be saved; in
fact, it will also split \c{[eax*2+offset]} into
\c{[eax+eax+offset]}. You can combat this behaviour by the use of
the \c{NOSPLIT} keyword: \c{[nosplit eax*2]} will force
-\c{[eax*2+0]} to be generated literally.
+\c{[eax*2+0]} to be generated literally. \c{[nosplit eax*1]} also has the
+same effect. In another way, a split EA form \c{[0, eax*2]} can be used, too.
However, \c{NOSPLIT} in \c{[nosplit eax+eax]} will be ignored because user's
intention here is considered as \c{[eax+eax]}.