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

📄 i386-notes.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="i386-Notes">i386-Notes</a>,

Previous:<a rel="previous" accesskey="p" href="i386-Bugs.html#i386-Bugs">i386-Bugs</a>,

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

<hr><br>

</div>



<h4 class="section">Notes</h4>



   <p>There is some trickery concerning the <code>mul</code> and <code>imul</code>

instructions that deserves mention.  The 16-, 32-, 64- and 128-bit expanding

multiplies (base opcode <code>0xf6</code>; extension 4 for <code>mul</code> and 5

for <code>imul</code>) can be output only in the one operand form.  Thus,

<code>imul %ebx, %eax</code> does <em>not</em> select the expanding multiply;

the expanding multiply would clobber the <code>%edx</code> register, and this

would confuse <code>gcc</code> output.  Use <code>imul %ebx</code> to get the

64-bit product in <code>%edx:%eax</code>.



   <p>We have added a two operand form of <code>imul</code> when the first operand

is an immediate mode expression and the second operand is a register. 

This is just a shorthand, so that, multiplying <code>%eax</code> by 69, for

example, can be done with <code>imul $69, %eax</code> rather than <code>imul

$69, %eax, %eax</code>.



   </body></html>



⌨️ 快捷键说明

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