1 @c Copyright (C) 2011-2024 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 Disable support for link-time relaxation (default).
35 Mark the generated binary as targeting the G10 variant of the RL78
39 Mark the generated binary as targeting the G13 variant of the RL78
44 Mark the generated binary as targeting the G14 variant of the RL78
45 architecture. This is the default.
48 Mark the generated binary as one that uses 32-bits to hold the
49 @code{double} floating point type. This is the default.
52 Mark the generated binary as one that uses 64-bits to hold the
53 @code{double} floating point type.
58 @section Symbolic Operand Modifiers
60 @cindex RL78 modifiers
63 The RL78 has three modifiers that adjust the relocations used by the
70 When loading a 20-bit (or wider) address into registers, this modifier
71 selects the 16 least significant bits.
79 When loading a 20-bit (or wider) address into registers, this modifier
80 selects the 16 most significant bits.
88 When loading a 20-bit (or wider) address into registers, this modifier
89 selects the 8 bits that would go into CS or ES (i.e. bits 23..16).
98 @section Assembler Directives
100 @cindex assembler directives, RL78
101 @cindex RL78 assembler directives
103 In addition to the common directives, the RL78 adds these:
108 Output a constant in ``double'' format, which is either a 32-bit
109 or a 64-bit floating point value, depending upon the setting of the
110 @option{-m32bit-doubles}|@option{-m64bit-doubles} command-line
114 Select the BSS section.
117 Output a constant value in a three byte format.
121 Output a constant value in a four byte format.
126 @section Syntax for the RL78
128 * RL78-Chars:: Special Characters
132 @subsection Special Characters
134 @cindex line comment character, RL78
135 @cindex RL78 line comment character
136 The presence of a @samp{;} appearing anywhere on a line indicates the
137 start of a comment that extends to the end of that line.
139 If a @samp{#} appears as the first character of a line then the whole
140 line is treated as a comment, but in this case the line can also be a
141 logical line number directive (@pxref{Comments}) or a preprocessor
142 control command (@pxref{Preprocessing}).
144 @cindex line separator, RL78
145 @cindex statement separator, RL78
146 @cindex RL78 line separator
147 The @samp{|} character can be used to separate statements on the same