1 @c Copyright (C) 2011-2015 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 RL78 Dependent Features
10 @node Machine Dependencies
11 @chapter RL78 Dependent Features
16 * RL78-Opts:: RL78 Assembler Command Line Options
17 * RL78-Modifiers:: Symbolic Operand Modifiers
18 * RL78-Directives:: Assembler Directives
19 * RL78-Syntax:: Syntax
29 Enable support for link-time relaxation.
32 Mark the generated binary as targeting the G10 variant of the RL78
36 Mark the generated binary as targeting the G13 variant of the RL78
41 Mark the generated binary as targeting the G14 variant of the RL78
42 architecture. This is the default.
45 Mark the generated binary as one that uses 32-bits to hold the
46 @code{double} floating point type. This is the default.
49 Mark the generated binary as one that uses 64-bits to hold the
50 @code{double} floating point type.
55 @section Symbolic Operand Modifiers
57 @cindex RL78 modifiers
60 The RL78 has three modifiers that adjust the relocations used by the
67 When loading a 20-bit (or wider) address into registers, this modifier
68 selects the 16 least significant bits.
76 When loading a 20-bit (or wider) address into registers, this modifier
77 selects the 16 most significant bits.
85 When loading a 20-bit (or wider) address into registers, this modifier
86 selects the 8 bits that would go into CS or ES (i.e. bits 23..16).
95 @section Assembler Directives
97 @cindex assembler directives, RL78
98 @cindex RL78 assembler directives
100 In addition to the common directives, the RL78 adds these:
105 Output a constant in ``double'' format, which is either a 32-bit
106 or a 64-bit floating point value, depending upon the setting of the
107 @option{-m32bit-doubles}|@option{-m64bit-doubles} command line
111 Select the BSS section.
114 Output a constant value in a three byte format.
118 Output a constant value in a four byte format.
123 @section Syntax for the RL78
125 * RL78-Chars:: Special Characters
129 @subsection Special Characters
131 @cindex line comment character, RL78
132 @cindex RL78 line comment character
133 The presence of a @samp{;} appearing anywhere on a line indicates the
134 start of a comment that extends to the end of that line.
136 If a @samp{#} appears as the first character of a line then the whole
137 line is treated as a comment, but in this case the line can also be a
138 logical line number directive (@pxref{Comments}) or a preprocessor
139 control command (@pxref{Preprocessing}).
141 @cindex line separator, RL78
142 @cindex statement separator, RL78
143 @cindex RL78 line separator
144 The @samp{|} character can be used to separate statements on the same