gas: sparc: fix collision of registers and pseudo-ops.
[deliverable/binutils-gdb.git] / gas / doc / c-i860.texi
index 79decb26ee7c7704fd8208a827590d2dcfe14f4e..d362ca27c58aab11583323741b1d0b03151fb60c 100644 (file)
@@ -1,4 +1,4 @@
-@c Copyright 2000, 2003 Free Software Foundation, Inc.
+@c Copyright (C) 2000-2016 Free Software Foundation, Inc.
 @c This is part of the GAS manual.
 @c For copying conditions, see the file as.texinfo.
 @ifset GENERIC
@@ -22,10 +22,11 @@ that I will add later (jle@cygnus.com).
 * Options-i860::                i860 Command-line Options
 * Directives-i860::             i860 Machine Directives
 * Opcodes for i860::            i860 Opcodes
+* Syntax of i860::              i860 Syntax
 @end menu
 
 @node Notes-i860
-@section i860 Notes 
+@section i860 Notes
 This is a fairly complete i860 assembler which is compatible with the
 UNIX System V/860 Release 4 assembler. However, it does not currently
 support SVR4 PIC (i.e., @code{@@GOT, @@GOTOFF, @@PLT}).
@@ -42,7 +43,7 @@ is @code{ha%expression} whereas the SVR4 syntax is @code{[expression]@@ha}
 (and similarly for the "l" and "h" selectors).
 @node Options-i860
 @section i860 Command-line Options
-@subsection SVR4 compatibility options 
+@subsection SVR4 compatibility options
 @table @code
 @item -V
 Print assembler version.
@@ -51,7 +52,7 @@ Ignored.
 @item -Qn
 Ignored.
 @end table
-@subsection Other options 
+@subsection Other options
 @table @code
 @item -EL
 Select little endian output (this is the default).
@@ -136,10 +137,10 @@ or large_imm@@l,%rn,%rn
 @end smallexample
 @item Load/store with relocatable address expression:
 
-For example, the pseudo-instruction @code{ld.b addr,%rn} 
+For example, the pseudo-instruction @code{ld.b addr_exp(%rx),%rn}
 will be expanded into:
 @smallexample
-orh addr_exp@@ha,%r0,%r31
+orh addr_exp@@ha,%rx,%r31
 ld.l addr_exp@@l(%r31),%rn
 @end smallexample
 
@@ -149,7 +150,7 @@ The analogous expansions apply to @code{ld.x, st.x, fld.x, pfld.x, fst.x}, and @
 If any of the arithmetic operations @code{adds, addu, subs, subu} are used
 with an immediate larger than 16-bits (signed), then they will be expanded.
 For instance, the pseudo-instruction @code{adds large_imm,%rx,%rn} expands to:
-@smallexample 
+@smallexample
 orh large_imm@@h,%r0,%r31
 or large_imm@@l,%r31,%r31
 adds %r31,%rx,%rn
@@ -170,3 +171,27 @@ andnot (-1 - large_imm)@@l,%r31,%rn
 @end smallexample
 @end itemize
 
+@node Syntax of i860
+@section i860 Syntax
+@menu
+* i860-Chars::                Special Characters
+@end menu
+
+@node i860-Chars
+@subsection Special Characters
+
+@cindex line comment character, i860
+@cindex i860 line comment character
+The presence of a @samp{#} appearing anywhere on a line indicates the
+start of a comment that extends to the end of that line.
+
+If a @samp{#} appears as the first character of a line then 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 line separator, i860
+@cindex statement separator, i860
+@cindex i860 line separator
+The @samp{;} character can be used to separate statements on the same
+line.
This page took 0.025745 seconds and 4 git commands to generate.