You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
4.8 KiB
HTML
81 lines
4.8 KiB
HTML
4 years ago
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>M68HC11-Directives - Using as</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html">
|
||
|
<meta name="description" content="Using as">
|
||
|
<meta name="generator" content="makeinfo 4.13">
|
||
|
<link title="Top" rel="start" href="index.html#Top">
|
||
|
<link rel="up" href="M68HC11_002dDependent.html#M68HC11_002dDependent" title="M68HC11-Dependent">
|
||
|
<link rel="prev" href="M68HC11_002dModifiers.html#M68HC11_002dModifiers" title="M68HC11-Modifiers">
|
||
|
<link rel="next" href="M68HC11_002dFloat.html#M68HC11_002dFloat" title="M68HC11-Float">
|
||
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
||
|
<!--
|
||
|
This file documents the GNU Assembler "as".
|
||
|
|
||
|
Copyright (C) 1991-2015 Free Software Foundation, Inc.
|
||
|
|
||
|
Permission is granted to copy, distribute and/or modify this document
|
||
|
under the terms of the GNU Free Documentation License, Version 1.3
|
||
|
or any later version published by the Free Software Foundation;
|
||
|
with no Invariant Sections, with no Front-Cover Texts, and with no
|
||
|
Back-Cover Texts. A copy of the license is included in the
|
||
|
section entitled ``GNU Free Documentation License''.
|
||
|
|
||
|
-->
|
||
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
||
|
<style type="text/css"><!--
|
||
|
pre.display { font-family:inherit }
|
||
|
pre.format { font-family:inherit }
|
||
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
||
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
||
|
pre.smallexample { font-size:smaller }
|
||
|
pre.smalllisp { font-size:smaller }
|
||
|
span.sc { font-variant:small-caps }
|
||
|
span.roman { font-family:serif; font-weight:normal; }
|
||
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
||
|
--></style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="node">
|
||
|
<a name="M68HC11-Directives"></a>
|
||
|
<a name="M68HC11_002dDirectives"></a>
|
||
|
<p>
|
||
|
Next: <a rel="next" accesskey="n" href="M68HC11_002dFloat.html#M68HC11_002dFloat">M68HC11-Float</a>,
|
||
|
Previous: <a rel="previous" accesskey="p" href="M68HC11_002dModifiers.html#M68HC11_002dModifiers">M68HC11-Modifiers</a>,
|
||
|
Up: <a rel="up" accesskey="u" href="M68HC11_002dDependent.html#M68HC11_002dDependent">M68HC11-Dependent</a>
|
||
|
<hr>
|
||
|
</div>
|
||
|
|
||
|
<h4 class="subsection">9.24.4 Assembler Directives</h4>
|
||
|
|
||
|
<p><a name="index-assembler-directives_002c-M68HC11-1421"></a><a name="index-assembler-directives_002c-M68HC12-1422"></a><a name="index-M68HC11-assembler-directives-1423"></a><a name="index-M68HC12-assembler-directives-1424"></a>
|
||
|
The 68HC11 and 68HC12 version of <code>as</code> have the following
|
||
|
specific assembler directives:
|
||
|
|
||
|
<dl>
|
||
|
<dt><code>.relax</code><dd><a name="index-assembler-directive-_002erelax_002c-M68HC11-1425"></a><a name="index-M68HC11-assembler-directive-_002erelax-1426"></a>The relax directive is used by the ‘<samp><span class="samp">GNU Compiler</span></samp>’ to emit a specific
|
||
|
relocation to mark a group of instructions for linker relaxation.
|
||
|
The sequence of instructions within the group must be known to the linker
|
||
|
so that relaxation can be performed.
|
||
|
|
||
|
<br><dt><code>.mode [mshort|mlong|mshort-double|mlong-double]</code><dd><a name="index-assembler-directive-_002emode_002c-M68HC11-1427"></a><a name="index-M68HC11-assembler-directive-_002emode-1428"></a>This directive specifies the ABI. It overrides the ‘<samp><span class="samp">-mshort</span></samp>’,
|
||
|
‘<samp><span class="samp">-mlong</span></samp>’, ‘<samp><span class="samp">-mshort-double</span></samp>’ and ‘<samp><span class="samp">-mlong-double</span></samp>’ options.
|
||
|
|
||
|
<br><dt><code>.far </code><var>symbol</var><dd><a name="index-assembler-directive-_002efar_002c-M68HC11-1429"></a><a name="index-M68HC11-assembler-directive-_002efar-1430"></a>This directive marks the symbol as a ‘<samp><span class="samp">far</span></samp>’ symbol meaning that it
|
||
|
uses a ‘<samp><span class="samp">call/rtc</span></samp>’ calling convention as opposed to ‘<samp><span class="samp">jsr/rts</span></samp>’.
|
||
|
During a final link, the linker will identify references to the ‘<samp><span class="samp">far</span></samp>’
|
||
|
symbol and will verify the proper calling convention.
|
||
|
|
||
|
<br><dt><code>.interrupt </code><var>symbol</var><dd><a name="index-assembler-directive-_002einterrupt_002c-M68HC11-1431"></a><a name="index-M68HC11-assembler-directive-_002einterrupt-1432"></a>This directive marks the symbol as an interrupt entry point.
|
||
|
This information is then used by the debugger to correctly unwind the
|
||
|
frame across interrupts.
|
||
|
|
||
|
<br><dt><code>.xrefb </code><var>symbol</var><dd><a name="index-assembler-directive-_002exrefb_002c-M68HC11-1433"></a><a name="index-M68HC11-assembler-directive-_002exrefb-1434"></a>This directive is defined for compatibility with the
|
||
|
‘<samp><span class="samp">Specification for Motorola 8 and 16-Bit Assembly Language Input
|
||
|
Standard</span></samp>’ and is ignored.
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
</body></html>
|
||
|
|