1 @c Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
2 @c This is part of the GAS manual.
3 @c For copying conditions, see the file as.texinfo.
7 @chapter AMD 29K Dependent Features
10 @node Machine Dependencies
11 @chapter AMD 29K Dependent Features
14 @cindex AMD 29K support
17 * AMD29K Options:: Options
18 * AMD29K Syntax:: Syntax
19 * AMD29K Floating Point:: Floating Point
20 * AMD29K Directives:: AMD 29K Machine Directives
21 * AMD29K Opcodes:: Opcodes
26 @cindex AMD 29K options (none)
27 @cindex options for AMD29K (none)
28 @code{@value{AS}} has no additional command-line options for the AMD
34 * AMD29K-Macros:: Macros
35 * AMD29K-Chars:: Special Characters
36 * AMD29K-Regs:: Register Names
42 @cindex Macros, AMD 29K
43 @cindex AMD 29K macros
44 The macro syntax used on the AMD 29K is like that described in the AMD
45 29K Family Macro Assembler Specification. Normal @code{@value{AS}}
46 macros should still work.
49 @subsection Special Characters
51 @cindex line comment character, AMD 29K
52 @cindex AMD 29K line comment character
53 @samp{;} is the line comment character.
55 @cindex identifiers, AMD 29K
56 @cindex AMD 29K identifiers
57 The character @samp{?} is permitted in identifiers (but may not begin
61 @subsection Register Names
63 @cindex AMD 29K register names
64 @cindex register names, AMD 29K
65 General-purpose registers are represented by predefined symbols of the
66 form @samp{GR@var{nnn}} (for global registers) or @samp{LR@var{nnn}}
67 (for local registers), where @var{nnn} represents a number between
68 @code{0} and @code{127}, written with no leading zeros. The leading
69 letters may be in either upper or lower case; for example, @samp{gr13}
70 and @samp{LR7} are both valid register names.
72 You may also refer to general-purpose registers by specifying the
73 register number as the result of an expression (prefixed with @samp{%%}
74 to flag the expression as a register number):
79 ---where @var{expression} must be an absolute expression evaluating to a
80 number between @code{0} and @code{255}. The range [0, 127] refers to
81 global registers, and the range [128, 255] to local registers.
83 @cindex special purpose registers, AMD 29K
84 @cindex AMD 29K special purpose registers
85 @cindex protected registers, AMD 29K
86 @cindex AMD 29K protected registers
87 In addition, @code{@value{AS}} understands the following protected
88 special-purpose register names for the AMD 29K family:
98 These unprotected special-purpose register names are also recognized:
106 @node AMD29K Floating Point
107 @section Floating Point
109 @cindex floating point, AMD 29K (@sc{ieee})
110 @cindex AMD 29K floating point (@sc{ieee})
111 The AMD 29K family uses @sc{ieee} floating-point numbers.
113 @node AMD29K Directives
114 @section AMD 29K Machine Directives
116 @cindex machine directives, AMD 29K
117 @cindex AMD 29K machine directives
119 @cindex @code{block} directive, AMD 29K
120 @item .block @var{size} , @var{fill}
121 This directive emits @var{size} bytes, each of value @var{fill}. Both
122 @var{size} and @var{fill} are absolute expressions. If the comma
123 and @var{fill} are omitted, @var{fill} is assumed to be zero.
125 In other versions of the @sc{gnu} assembler, this directive is called
130 @cindex @code{cputype} directive, AMD 29K
132 This directive is ignored; it is accepted for compatibility with other
135 @cindex @code{file} directive, AMD 29K
137 This directive is ignored; it is accepted for compatibility with other
141 @emph{Warning:} in other versions of the @sc{gnu} assembler, @code{.file} is
142 used for the directive called @code{.app-file} in the AMD 29K support.
145 @cindex @code{line} directive, AMD 29K
147 This directive is ignored; it is accepted for compatibility with other
151 @c since we're ignoring .lsym...
152 @cindex @code{reg} directive, AMD 29K
153 @item .reg @var{symbol}, @var{expression}
154 @code{.reg} has the same effect as @code{.lsym}; @pxref{Lsym,,@code{.lsym}}.
157 @cindex @code{sect} directive, AMD 29K
159 This directive is ignored; it is accepted for compatibility with other
162 @cindex @code{use} directive, AMD 29K
163 @item .use @var{section name}
164 Establishes the section and subsection for the following code;
165 @var{section name} may be one of @code{.text}, @code{.data},
166 @code{.data1}, or @code{.lit}. With one of the first three @var{section
167 name} options, @samp{.use} is equivalent to the machine directive
168 @var{section name}; the remaining case, @samp{.use .lit}, is the same as
175 @cindex AMD 29K opcodes
176 @cindex opcodes for AMD 29K
177 @code{@value{AS}} implements all the standard AMD 29K opcodes. No
178 additional pseudo-instructions are needed on this family.
180 For information on the 29K machine instruction set, see @cite{Am29000
181 User's Manual}, Advanced Micro Devices, Inc.