xref: /openbsd-src/gnu/usr.bin/binutils/gas/doc/c-m88k.texi (revision d2201f2f89f0be1a0be6f7568000ed297414a06d)
1*d2201f2fSdrahn@c Copyright 2001 Free Software Foundation, Inc.
2*d2201f2fSdrahn@c This is part of the GAS manual.
3*d2201f2fSdrahn@c For copying conditions, see the file as.texinfo.
4*d2201f2fSdrahn@page
5*d2201f2fSdrahn@node M88K-Dependent
6*d2201f2fSdrahn@chapter Motorola M88K Dependent Features
7*d2201f2fSdrahn
8*d2201f2fSdrahn@cindex M88K support
9*d2201f2fSdrahn@menu
10*d2201f2fSdrahn* M88K Directives::     M88K Machine Directives
11*d2201f2fSdrahn@end menu
12*d2201f2fSdrahn
13*d2201f2fSdrahn@node M88K Directives
14*d2201f2fSdrahn@section M88K Machine Directives
15*d2201f2fSdrahn
16*d2201f2fSdrahnThe M88K version of the assembler supports the following machine
17*d2201f2fSdrahndirectives:
18*d2201f2fSdrahn
19*d2201f2fSdrahn@table @code
20*d2201f2fSdrahn@cindex @code{align} directive, M88K
21*d2201f2fSdrahn@item .align
22*d2201f2fSdrahnThis directive aligns the section program counter on the next 4-byte
23*d2201f2fSdrahnboundary.
24*d2201f2fSdrahn
25*d2201f2fSdrahn@cindex @code{dfloat} directive, M88K
26*d2201f2fSdrahn@item .dfloat @var{expr}
27*d2201f2fSdrahnThis assembles a double precision (64-bit) floating point constant.
28*d2201f2fSdrahn
29*d2201f2fSdrahn@cindex @code{ffloat} directive, M88K
30*d2201f2fSdrahn@item .ffloat @var{expr}
31*d2201f2fSdrahnThis assembles a single precision (32-bit) floating point constant.
32*d2201f2fSdrahn
33*d2201f2fSdrahn@cindex @code{half} directive, M88K
34*d2201f2fSdrahn@item .half @var{expr}
35*d2201f2fSdrahnThis directive assembles a half-word (16-bit) constant.
36*d2201f2fSdrahn
37*d2201f2fSdrahn@cindex @code{word} directive, M88K
38*d2201f2fSdrahn@item .word @var{expr}
39*d2201f2fSdrahnThis assembles a word (32-bit) constant.
40*d2201f2fSdrahn
41*d2201f2fSdrahn@cindex @code{string} directive, M88K
42*d2201f2fSdrahn@item .string "@var{str}"
43*d2201f2fSdrahnThis directive behaves like the standard @code{.ascii} directive for
44*d2201f2fSdrahncopying @var{str} into the object file.  The string is not terminated
45*d2201f2fSdrahnwith a null byte.
46*d2201f2fSdrahn
47*d2201f2fSdrahn@cindex @code{set} directive, M88K
48*d2201f2fSdrahn@item .set @var{symbol}, @var{value}
49*d2201f2fSdrahnThis directive creates a symbol named @var{symbol} which is an alias for
50*d2201f2fSdrahnanother symbol (possibly not yet defined).  This should not be confused
51*d2201f2fSdrahnwith the mnemonic @code{set}, which is a legitimate M88K instruction.
52*d2201f2fSdrahn
53*d2201f2fSdrahn@cindex @code{def} directive, M88K
54*d2201f2fSdrahn@item .def @var{symbol}, @var{value}
55*d2201f2fSdrahnThis directive is synonymous with @code{.set} and is presumably provided
56*d2201f2fSdrahnfor compatibility with other M88K assemblers.
57*d2201f2fSdrahn
58*d2201f2fSdrahn@cindex @code{bss} directive, M88K
59*d2201f2fSdrahn@item .bss @var{symbol}, @var{length}, @var{align}
60*d2201f2fSdrahnReserve @var{length} bytes in the bss section for a local @var{symbol},
61*d2201f2fSdrahnaligned to the power of two specified by @var{align}.  @var{length} and
62*d2201f2fSdrahn@var{align} must be positive absolute expressions.  This directive
63*d2201f2fSdrahndiffers from @samp{.lcomm} only in that it permits you to specify
64*d2201f2fSdrahnan alignment.  @xref{Lcomm,,@code{.lcomm}}.
65*d2201f2fSdrahn
66*d2201f2fSdrahn@end table
67