mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
a05a5b64cf
Binutils documentation uses a mix of spelling for the compound word "command-line X". According to [1]: "Sometimes compound words are written separately (nail polish), sometimes with a hyphen (short-sighted) and sometimes as one word (eyelashes). Often new compounds are written as two separate words and, as they become more familiar, they are either connected with a hyphen (-) or made into one word." I think command-line X is common enough in our industry that the two workds command and line should be connected. Since command-line is more common than commandline, I propose to update binutils documentation to consistently use "command-line" when this is used as an adjective to a noun (eg. command-line argument, command-line switch, command-line option and command-line flag). I've left occurences of "the command line" as is. I've also left gdb, sim and readline alone and have only touched public documentation (texi and NEWS files). [1] http://dictionary.cambridge.org/grammar/british-grammar/word-formation/compounds 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com> bfd/ * doc/bfdint.texi: Use command-line consistently when used in a compount word. * doc/bfdsumm.texi: Likewise. binutils/ * NEWS: Use command-line consistently when used in a compount word. * doc/binutils.texi: Likewise and fix trailing whitespace on same line. gas/ * NEWS: Use command-line consistently when used in a compount word. * doc/as.texi: Likewise. * doc/c-aarch64.texi: Likewise. * doc/c-alpha.texi: Likewise. * doc/c-arc.texi: Likewise. * doc/c-arm.texi: Likewise. * doc/c-avr.texi: Likewise. * doc/c-bfin.texi: Likewise. * doc/c-cris.texi: Likewise. * doc/c-epiphany.texi: Likewise. * doc/c-i386.texi: Likewise. * doc/c-ia64.texi: Likewise. * doc/c-lm32.texi: Likewise. * doc/c-m32r.texi: Likewise. * doc/c-m68k.texi: Likewise. * doc/c-mips.texi: Likewise. * doc/c-mmix.texi: Likewise. * doc/c-msp430.texi: Likewise. * doc/c-mt.texi: Likewise. * doc/c-nios2.texi: Likewise. * doc/c-ppc.texi: Likewise. * doc/c-pru.texi: Likewise. * doc/c-rl78.texi: Likewise. * doc/c-rx.texi: Likewise. * doc/c-tic6x.texi: Likewise. * doc/c-v850.texi: Likewise. * doc/c-vax.texi: Likewise. * doc/c-visium.texi: Likewise. * doc/c-xstormy16.texi: Likewise. * doc/c-xtensa.texi: Likewise. * doc/c-z80.texi: Likewise. * doc/c-z8k.texi: Likewise. * doc/internals.texi: Likewise. gprof/ * gprof.texi: Use command-line consistently when used in a compount word. ld/ * NEWS: Use command-line consistently when used in a compount word. * ld.texinfo: Likewise. * ldint.texinfo: Likewise.
105 lines
3.1 KiB
Plaintext
105 lines
3.1 KiB
Plaintext
@c Copyright (C) 2010-2018 Free Software Foundation, Inc.
|
|
@c This is part of the GAS manual.
|
|
@c For copying conditions, see the file as.texinfo.
|
|
|
|
@node XSTORMY16-Dependent
|
|
@chapter XStormy16 Dependent Features
|
|
|
|
@cindex XStormy16 support
|
|
@menu
|
|
* XStormy16 Syntax:: Syntax
|
|
* XStormy16 Directives:: Machine Directives
|
|
* XStormy16 Opcodes:: Pseudo-Opcodes
|
|
@end menu
|
|
|
|
@node XStormy16 Syntax
|
|
@section Syntax
|
|
@menu
|
|
* XStormy16-Chars:: Special Characters
|
|
@end menu
|
|
|
|
@node XStormy16-Chars
|
|
@subsection Special Characters
|
|
|
|
@cindex line comment character, XStormy16
|
|
@cindex XStormy16 line comment character
|
|
@samp{#} is the line comment character. If a @samp{#} appears as the
|
|
first character of a line, the whole line is treated as a comment, but
|
|
in this case the line can also be a logical line number directive
|
|
(@pxref{Comments}) or a preprocessor control command
|
|
(@pxref{Preprocessing}).
|
|
|
|
@cindex comment character, XStormy16
|
|
@cindex XStormy16 comment character
|
|
A semicolon (@samp{;}) can be used to start a comment that extends
|
|
from wherever the character appears on the line up to the end of the
|
|
line.
|
|
|
|
@cindex line separator, XStormy16
|
|
@cindex statement separator, XStormy16
|
|
@cindex XStormy16 line separator
|
|
|
|
The @samp{|} character can be used to separate statements on the same
|
|
line.
|
|
|
|
|
|
@node XStormy16 Directives
|
|
@section XStormy16 Machine Directives
|
|
|
|
@cindex machine directives, XStormy16
|
|
@cindex XStormy16 machine directives
|
|
@table @code
|
|
|
|
@cindex @code{16bit_pointers} directive, XStormy16
|
|
@item .16bit_pointers
|
|
Like the @option{--16bit-pointers} command-line option this directive
|
|
indicates that the assembly code makes use of 16-bit pointers.
|
|
|
|
@cindex @code{32bit_pointers} directive, XStormy16
|
|
@item .32bit_pointers
|
|
Like the @option{--32bit-pointers} command-line option this directive
|
|
indicates that the assembly code makes use of 32-bit pointers.
|
|
|
|
@cindex @code{.no_pointers} directive, XStormy16
|
|
@item .no_pointers
|
|
Like the @option{--no-pointers} command-line option this directive
|
|
indicates that the assembly code does not makes use pointers.
|
|
|
|
@end table
|
|
|
|
@node XStormy16 Opcodes
|
|
@section XStormy16 Pseudo-Opcodes
|
|
|
|
@cindex XStormy16 pseudo-opcodes
|
|
@cindex pseudo-opcodes for XStormy16
|
|
@code{@value{AS}} implements all the standard XStormy16 opcodes.
|
|
|
|
@code{@value{AS}} also implements the following pseudo ops:
|
|
|
|
@table @code
|
|
|
|
@cindex @code{@@lo} pseudo-op, XStormy16
|
|
@item @@lo()
|
|
Computes the lower 16 bits of the given expression and stores it into
|
|
the immediate operand field of the given instruction. For example:
|
|
|
|
@samp{add r6, @@lo(here - there)}
|
|
|
|
computes the difference between the address of labels 'here' and
|
|
'there', takes the lower 16 bits of this difference and adds it to
|
|
register 6.
|
|
|
|
@cindex @code{@@hi} pseudo-op, XStormy16
|
|
@item @@hi()
|
|
Computes the higher 16 bits of the given expression and stores it into
|
|
the immediate operand field of the given instruction. For example:
|
|
|
|
@samp{addc r7, @@hi(here - there)}
|
|
|
|
computes the difference between the address of labels 'here' and
|
|
'there', takes the upper 16 bits of this difference, shifts it down 16
|
|
bits and then adds it, along with the carry bit, to the value in
|
|
register 7.
|
|
|
|
@end table
|