diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-11 23:57:23 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-11 23:57:23 +0000 |
commit | 9c06db6935f3cc6ae563cdbc27dbbcbb187629ab (patch) | |
tree | c81da33906386f5b9ac0d706b8a477b718d523c3 /doc | |
parent | 9b49e24e1fe1a4afc021f6c3a01720fcabdc47ca (diff) | |
download | nasm-9c06db6935f3cc6ae563cdbc27dbbcbb187629ab.tar.gz nasm-9c06db6935f3cc6ae563cdbc27dbbcbb187629ab.tar.bz2 nasm-9c06db6935f3cc6ae563cdbc27dbbcbb187629ab.zip |
doc: add some cross-references
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nasmdoc.src | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index 197011a..4682713 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -1309,7 +1309,7 @@ the \c{NOSPLIT} keyword: \c{[nosplit eax*2]} will force In 64-bit mode, NASM will by default generate absolute addresses. The \i\c{REL} keyword makes it produce \c{RIP}-relative addresses. Since this is frequently the normally desired behaviour, see the \c{DEFAULT} -directive. The keyword \i\c{ABS} overrides \i\c{REL}. +directive (\k{default}). The keyword \i\c{ABS} overrides \i\c{REL}. \H{const} \i{Constants} @@ -3459,13 +3459,16 @@ to use. Currently, the only \c{DEFAULT} that is settable is whether or not registerless instructions in 64-bit mode are \c{RIP}-relative or not. By default, they are absolute unless overridden with the \i\c{REL} -specifier. However, if \c{DEFAULT REL} is specified, \c{REL} is -default, unless overridden with the \c{ABS} specifier, \e{except when -used with an \c{FS} or \c{GS} segment override}. The special handling -of \c{FS} and \c{GS} overrides are due to the fact that these -registers are generally used as thread pointers or other special -functions in 64-bit mode, and generating \c{RIP}-relative addresses -would be extremely confusing. +specifier (see \k{effaddr}). However, if \c{DEFAULT REL} is +specified, \c{REL} is default, unless overridden with the \c{ABS} +specifier, \e{except when used with an FS or GS segment override}. + +The special handling of \c{FS} and \c{GS} overrides are due to the +fact that these registers are generally used as thread pointers or +other special functions in 64-bit mode, and generating +\c{RIP}-relative addresses would be extremely confusing. + +\c{DEFAULT REL} is disabled with \c{DEFAULT ABS}. \H{section} \i\c{SECTION} or \i\c{SEGMENT}: Changing and \i{Defining Sections} |