📄 gnu_asm.htm
字号:
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#034aa930">.p2align[wl]
<I>abs-expr</I>, <I>abs-expr</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#8e9de1a1">.psize
<I>lines</I>, <I>columns</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#08d06760">.quad
<I>bignums</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#3011c9e6">.rept
<I>count</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#f5814739">.sbttl
"<I>subheading</I>"</A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#ac372db0">.scl
<I>class</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#ba439edf">.section
<I>name</I>, <I>subsection</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#c894ae8e">.set
<I>symbol</I>, <I>expression</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#cdb05c2b">.short
<I>expressions</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#ede88a1a">.single
<I>flonums</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#029d3219">.size</A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#4fde25de">.space
<I>size</I>, <I>fill</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#6d0f7673">.stabd,
.stabn, .stabs</A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#10c88628">.string
"<I>str</I>"</A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#1d4fd552">.tag
<I>structname</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#869a00c4">.text
<I>subsection</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#32d19e4e">.title
"<I>heading</I>"</A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#4475b8bd">.type
<I>int</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#5a8c2ad0">.val
<I>addr</I></A></FONT></FONT></FONT>
<LI><FONT face="Courier New"><FONT color=#008000><FONT size=+1><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#8647002d">.word
<I>expressions</I></A></FONT></FONT></FONT> </LI></UL><FONT
face="Times New Roman"><FONT size=+1><FONT color=#000000>See also </FONT><FONT
color=#008000><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#c15abd77">Warning!
Special treatment to support compilers</A></FONT><FONT color=#000000> and
</FONT><FONT color=#008000><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#9ae8fb95">Deprecated
directives</A></FONT><FONT color=#000000>.</FONT></FONT></FONT>
<CENTER>
<HR width="100%" SIZE=3>
</CENTER>
<CENTER><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#Top">Top</A></CENTER><A
name=6cb39e9c></A><B><FONT face="Courier New"><FONT
size=+2>.abort</FONT></FONT></B>
<P><FONT color=#000000><FONT face="Times New Roman"><FONT size=+1>This directive
stops the assembly immediately. It is for compatibility with other assemblers.
The original idea was that the assembly language source would be piped into the
assembler. If the sender of the source quit, it could use this directive tells
as to quit also. One day </FONT></FONT><FONT face="Courier New"><FONT
size=+0>.abort</FONT></FONT><FONT face="Times New Roman"><FONT size=+1> will not
be supported.</FONT></FONT></FONT>
<CENTER>
<HR width="100%" SIZE=3>
</CENTER>
<CENTER><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#Top">Top</A></CENTER><A
name=6cb39e9c></A><B><FONT face="Courier New"><FONT
size=+2>.ABORT</FONT></FONT></B>
<P><FONT color=#000000><FONT face="Times New Roman"><FONT size=+1>When producing
COFF output, </FONT></FONT><FONT face="Courier New"><FONT
size=+0>as</FONT></FONT><FONT face="Times New Roman"><FONT size=+1> accepts this
directive as a synonym for </FONT></FONT><FONT face="Courier New"><FONT
size=+0>.abort</FONT></FONT><FONT face="Times New Roman"><FONT
size=+1>.</FONT></FONT></FONT>
<P><FONT color=#000000><FONT face="Times New Roman"><FONT size=+1>When producing
</FONT></FONT><FONT face="Courier New"><FONT size=+0>b.out</FONT></FONT><FONT
face="Times New Roman"><FONT size=+1> output, </FONT></FONT><FONT
face="Courier New"><FONT size=+0>as</FONT></FONT><FONT
face="Times New Roman"><FONT size=+1> accepts this directive, but ignores
it.</FONT></FONT></FONT>
<CENTER>
<HR width="100%" SIZE=3>
</CENTER>
<CENTER><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#Top">Top</A></CENTER><A
name=4f8da59f></A><B><FONT size=+2><FONT face="Courier New">.align
<I>abs-expr</I>,</FONT><FONT face=Arial> </FONT><I><FONT
face="Courier New">abs-expr</FONT></I></FONT></B>
<P><FONT face="Times New Roman"><FONT color=#000000><FONT size=+1>Pad the
location counter (in the current subsection) to a particular storage boundary.
The first expression (which must be absolute) is the alignment required, as
described in the following. The second expression (also absolute) gives the
value to be stored in the padding bytes. It (and the comma) may be omitted. If
it is omitted, the padding bytes are zero.</FONT></FONT></FONT>
<P><FONT face="Times New Roman"><FONT color=#000000><FONT size=+1>The way the
required alignment is specified varies from system to system. For the a29k,
hppa, m86k, m88k, w65, sparc, and Hitachi SH, and i386 using ELF format, the
first expression is the alignment request in bytes.</FONT></FONT></FONT>
<P><FONT color=#000000><FONT face="Times New Roman"><FONT size=+1>For example,
</FONT></FONT><FONT face="Courier New"><FONT size=+0>.align 8</FONT></FONT><FONT
face="Times New Roman"><FONT size=+1> advances the location counter until it is
a multiple of 8. If the location counter is already a multiple of 8, no change
is needed.</FONT></FONT></FONT>
<P><FONT color=#000000><FONT face="Times New Roman"><FONT size=+1>For other
systems, including the i386 using a.out format, it is the number of low-order
zero bits the location counter must have after advancement. For example
</FONT></FONT><FONT face="Courier New"><FONT size=+0>.align 3</FONT></FONT><FONT
face="Times New Roman"><FONT size=+1> advances the location counter until it a
multiple of 8. If the location counter is already a multiple of 8, no change is
needed.</FONT></FONT></FONT>
<P><FONT color=#000000><FONT face="Times New Roman"><FONT size=+1>This
inconsistency is due to the different behaviors of the various native assemblers
for these systems which AS must emulate. AS also provides </FONT></FONT><FONT
face="Courier New"><FONT size=+0>.balign</FONT></FONT><FONT
face="Times New Roman"><FONT size=+1> and </FONT></FONT><FONT
face="Courier New"><FONT size=+0>.p2align</FONT></FONT><FONT
face="Times New Roman"><FONT size=+1> directives, described later, which have a
consistent behavior across all architectures (but are specific to
AS).</FONT></FONT></FONT>
<CENTER>
<HR width="100%" SIZE=3>
</CENTER>
<CENTER><A
href="http://rustam.uwp.edu/499/moredocs/asAssembler_Directives.html#Top">Top</A></CENTER><A
name=b5f1df75></A><B><FONT face="Courier New"><FONT size=+2>.app-file
<I>string</I></FONT></FONT></B>
<P><FONT color=#000000><FONT face="Courier New"><FONT
size=+0>.app-file</FONT></FONT><FONT face="Times New Roman"><FONT size=+1>
(which may also be spelled
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -