pascal_op_bit.htm
来自「Delphi脚本控件」· HTM 代码 · 共 81 行
HTM
81 行
<html>
<head>
<link rel=stylesheet type="text/css" href="styles.css">
</head>
<body>
<h3>
paxPascal Bitwise Operators
</h3>
<table border="1">
<tr>
<th>Language Element</th>
<th>Short Description</th>
</tr>
<tr>
<td><a href="#Bitwise Left Shift Operator (shl)"><b>Bitwise Left Shift Operator (shl)</b></a></td>
<td>Left shifts the bits of an expression.</td>
</tr>
<tr>
<td><a href="#Bitwise Right Shift Operator (shr)"><b>Bitwise Right Shift Operator (shr)</b></a></td>
<td>Right shifts the bits of an expression.</td>
</tr>
</table>
<a name="Bitwise Left Shift Operator (shl)"><h3>Bitwise Left Shift Operator (shl)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Left shifts the bits of an expression.
<pre>
result = expression1 <font color="blue"><b>shl</b></font> expression2
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable.
</blockquote>
</blockquote>
<blockquote>
<i>expression1, expression2</i>
<blockquote>
Any expressions.
</blockquote>
</blockquote>
The shl operator looks at the binary representation of the values of two expressions and does a bitwise left shift operation on them. If one or both expressions are Null expressions, <font color="black"><i>result</i></font> is Null.
</blockquote>
<a name="Bitwise Right Shift Operator (shr)"><h3>Bitwise Right Shift Operator (shr)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Right shifts the bits of an expression.
<pre>
result = expression1 <font color="blue"><b>shr</b></font> expression2
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable.
</blockquote>
</blockquote>
<blockquote>
<i>expression1, expression2</i>
<blockquote>
Any expressions.
</blockquote>
</blockquote>
The shr operator looks at the binary representation of the values of two expressions and does a bitwise right shift operation on them. If one or both expressions are Null expressions, <font color="black"><i>result</i></font> is Null.
</blockquote>
<p>
<HR>
<font size = 1 color ="gray">
Copyright © 1999-2005
VIRT Laboratory. All rights reserved.
</font>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?