1 @c Copyright (C) 2011-2014 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 one that uses 32-bits to hold the
37 @code{double} floating point type. This is the default.
40 Mark the generated binary as one that uses 64-bits to hold the
41 @code{double} floating point type.
46 @section Symbolic Operand Modifiers
48 @cindex RL78 modifiers
51 The RL78 has three modifiers that adjust the relocations used by the
58 When loading a 20-bit (or wider) address into registers, this modifier
59 selects the 16 least significant bits.
67 When loading a 20-bit (or wider) address into registers, this modifier
68 selects the 16 most significant bits.
76 When loading a 20-bit (or wider) address into registers, this modifier
77 selects the 8 bits that would go into CS or ES (i.e. bits 23..16).
86 @section Assembler Directives
88 @cindex assembler directives, RL78
89 @cindex RL78 assembler directives
91 In addition to the common directives, the RL78 adds these:
96 Output a constant in ``double'' format, which is either a 32-bit
97 or a 64-bit floating point value, depending upon the setting of the
98 @option{-m32bit-doubles}|@option{-m64bit-doubles} command line
102 Select the BSS section.
105 Output a constant value in a three byte format.
109 Output a constant value in a four byte format.
114 @section Syntax for the RL78
116 * RL78-Chars:: Special Characters
120 @subsection Special Characters
122 @cindex line comment character, RL78
123 @cindex RL78 line comment character
124 The presence of a @samp{;} appearing anywhere on a line indicates the
125 start of a comment that extends to the end of that line.
127 If a @samp{#} appears as the first character of a line then the whole
128 line is treated as a comment, but in this case the line can also be a
129 logical line number directive (@pxref{Comments}) or a preprocessor
130 control command (@pxref{Preprocessing}).
132 @cindex line separator, RL78
133 @cindex statement separator, RL78
134 @cindex RL78 line separator
135 The @samp{|} character can be used to separate statements on the same