1 @c Copyright 2011-2013 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
38 @section Symbolic Operand Modifiers
40 @cindex RL78 modifiers
43 The RL78 has three modifiers that adjust the relocations used by the
50 When loading a 20-bit (or wider) address into registers, this modifier
51 selects the 16 least significant bits.
59 When loading a 20-bit (or wider) address into registers, this modifier
60 selects the 16 most significant bits.
68 When loading a 20-bit (or wider) address into registers, this modifier
69 selects the 8 bits that would go into CS or ES (i.e. bits 23..16).
78 @section Assembler Directives
80 @cindex assembler directives, RL78
81 @cindex RL78 assembler directives
83 In addition to the common directives, the RL78 adds these:
88 Output a constant in ``double'' format, which is a 32-bit floating
92 Select the BSS section.
95 Output a constant value in a three byte format.
99 Output a constant value in a four byte format.
104 @section Syntax for the RL78
106 * RL78-Chars:: Special Characters
110 @subsection Special Characters
112 @cindex line comment character, RL78
113 @cindex RL78 line comment character
114 The presence of a @samp{;} appearing anywhere on a line indicates the
115 start of a comment that extends to the end of that line.
117 If a @samp{#} appears as the first character of a line then the whole
118 line is treated as a comment, but in this case the line can also be a
119 logical line number directive (@pxref{Comments}) or a preprocessor
120 control command (@pxref{Preprocessing}).
122 @cindex line separator, RL78
123 @cindex statement separator, RL78
124 @cindex RL78 line separator
125 The @samp{|} character can be used to separate statements on the same