⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m68hc11-opts.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Using as</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using as">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="M68HC11-Opts">M68HC11-Opts</a>,

Next:<a rel="next" accesskey="n" href="M68HC11-Syntax.html#M68HC11-Syntax">M68HC11-Syntax</a>,

Up:<a rel="up" accesskey="u" href="M68HC11-Dependent.html#M68HC11-Dependent">M68HC11-Dependent</a>

<hr><br>

</div>



<h4 class="section">M68HC11 and M68HC12 Options</h4>



   <p>The Motorola 68HC11 and 68HC12 version of <code>as</code> has a few machine

dependent options.



   <p>This option switches the assembler in the M68HC11 mode. In this mode,

the assembler only accepts 68HC11 operands and mnemonics. It produces

code for the 68HC11.



   <p>This option switches the assembler in the M68HC12 mode. In this mode,

the assembler also accepts 68HC12 operands and mnemonics. It produces

code for the 68HC12. A fiew 68HC11 instructions are replaced by

some 68HC12 instructions as recommended by Motorola specifications.



   <p>You can use the <code>--strict-direct-mode</code> option to disable

the automatic translation of direct page mode addressing into

extended mode when the instruction does not support direct mode. 

For example, the <code>clr</code> instruction does not support direct page

mode addressing. When it is used with the direct page mode,

<code>as</code> will ignore it and generate an absolute addressing. 

This option prevents <code>as</code> from doing this, and the wrong

usage of the direct page mode will raise an error.



   <p>The <code>--short-branchs</code> option turns off the translation of

relative branches into absolute branches when the branch offset is

out of range. By default <code>as</code> transforms the relative

branch (<code>bsr</code>, <code>bgt</code>, <code>bge</code>, <code>beq</code>, <code>bne</code>,

<code>ble</code>, <code>blt</code>, <code>bhi</code>, <code>bcc</code>, <code>bls</code>,

<code>bcs</code>, <code>bmi</code>, <code>bvs</code>, <code>bvs</code>, <code>bra</code>) into

an absolute branch when the offset is out of the -128 .. 127 range. 

In that case, the <code>bsr</code> instruction is translated into a

<code>jsr</code>, the <code>bra</code> instruction is translated into a

<code>jmp</code> and the conditional branchs instructions are inverted and

followed by a <code>jmp</code>. This option disables these translations

and <code>as</code> will generate an error if a relative branch

is out of range. This option does not affect the optimization

associated to the <code>jbra</code>, <code>jbsr</code> and <code>jbXX</code> pseudo opcodes.



   <p>The <code>--force-long-branchs</code> option forces the translation of

relative branches into absolute branches. This option does not affect

the optimization associated to the <code>jbra</code>, <code>jbsr</code> and

<code>jbXX</code> pseudo opcodes.



   <p>You can use the <code>--print-insn-syntax</code> option to obtain the

syntax description of the instruction when an error is detected.



   <p>The <code>--print-opcodes</code> option prints the list of all the

instructions with their syntax. The first item of each line

represents the instruction name and the rest of the line indicates

the possible operands for that instruction. The list is printed

in alphabetical order. Once the list is printed <code>as</code>

exits.



   <p>The <code>--generate-example</code> option is similar to <code>--print-opcodes</code>

but it generates an example for each instruction instead.



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -