📄 seq_op10.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="book_html">
<meta name="LASTUPDATED" content="08/22/03 10:11:46">
<title>6.9 Object length conversion</title>
<STYLE TYPE="text/css">
<!--
span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>
</head>
<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">
<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>
<table width="331" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="c2isetto.htm"><img src="images/navtoc.gif" width="84" height="23"
border="0" alt="TOC"> </a></td>
<td><a href="seq_ops9.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"> </a></td>
<td><a href="seq_op11.htm"><img src="images/navnext.gif" width="83" height="23"
border="0" alt="NEXT"> </a></td>
<td><a href="c2isetix.htm"><img src="images/navidx.gif" width="84" height="23"
border="0" alt="INDEX"> </a></td>
</tr>
</table>
<p><br clear="all">
</p>
<hr align="left">
<blockquote>
<h2>
<a name="1205999"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">6.9 Object length conversion</font>
</h2><hr>
<p>
<a name="1206000"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Earlier sections explained that data can be represented in various sized objects. This section describes the instructions that can be used to convert between these representations.</font>
</p>
<p>
<a name="1206001"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Most of the ST20-C2 integer arithmetic instructions operate on signed integers held in the integer stack registers as 32-bit objects, and produce results in this form. A few of the instructions operate on or produce results as 64-bit objects held in two of the 32-bit stack registers. The ST20-C2 therefore provides instructions that allow an integer to be sign extended to 32-bits or 64-bits, as well as instructions that allow a program to check that an integer can be represented in a smaller object than the object in which it is currently represented.</font>
</p>
<p>
<a name="1206002"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Object length conversion is also important for conversion of high level language data types.</font>
</p>
<h3>
<a name="1206004"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">6.9.1 Conversion between 8/16-bit object and word representations</font>
</h3>
<p>
<a name="1214059"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">To enable integer representations to be converted between bytes, 16-bit objects, and words, the ST20-C2 provides the instructions shown in <a href="seq_op10.htm#1214112"><font color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Table
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -