Add support for the Infineon XC16X.
[binutils.git] / gas / doc / c-xc16x.texi
blob73866e466f7ed6a58099f73594f43895b6ca31c2
1 @c Copyright 2006 Free Software Foundation, Inc.
2 @c This is part of the GAS manual.
3 @c For copying conditions, see the file as.texinfo.
5 @page
6 @node xc16x-Dependent
7 @chapter Infineon xc16x Dependent Features
9 @cindex xc16x support
10 @menu
11 * xc16x Directives::     xc16x Machine Directives
12 @end menu
14 @node xc16x Directives
15 @section xc16x Machine Directives
17 The xc16x version of the assembler supports the following machine
18 directives:
20 @table @code
21 @cindex @code{align} directive, xc16x
22 @item .align
23 This directive aligns the section program counter on the next 2-byte
24 boundary.
27 @cindex @code{byte} directive, xc16x
28 @item .byte @var{expr}
29 This directive assembles a half-word (8-bit) constant.
31 @cindex @code{word} directive, xc16x
32 @item .word @var{expr}
33 This assembles a word (16-bit) constant.
35 @cindex @code{ascii} directive, xc16x
36 @item .ascii "@var{ascii}"
37 This directive used for copying @var{str} into the object file. 
38 The string is terminated with a null byte.
40 @cindex @code{set} directive, xc16x
41 @item .set @var{symbol}, @var{value}
42 This directive creates a symbol named @var{symbol} which is an alias for
43 another symbol (possibly not yet defined).  This should not be confused
44 with the mnemonic @code{set}, which is a legitimate xc16x instruction.
48 @cindex @code{bss} directive, xc16x
49 @item .bss @var{symbol}, @var{length}
50 Reserve @var{length} bytes in the bss section for a local @var{symbol},
51 aligned to the power of two specified by @var{align}.  @var{length} and
52 @var{align} must be positive absolute expressions.  This directive
53 differs from @samp{.lcomm} only in that it permits you to specify
54 an alignment.  
55 @end table