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

📄 instructions2.doc82.html

📁 Jvm 规范说明。The Java Virtual Machine was designed to support the Java programming language. Some concep
💻 HTML
字号:
<html><head><title>VM Spec  </title></head><body BGCOLOR=#eeeeff text=#000000 LINK=#0000ff VLINK=#000077 ALINK=#ff0000> <a href="VMSpecTOC.doc.html">Contents</a> | <a href="Instructions2.doc81.html">Prev</a> | <a href="Instructions2.doc83.html">Next</a> | <a href="Mnemonics.doc.html">Index</a><hr><br> <a name="i2s"></a><h2>i2s</h2><a name="i2s.Operation"></a><b>Operation</b><br><a name="68407"></a><p><Table Border="3"><tr><td><a name="68406"></a> <i>i2s</i><td><a name="87568"></a> </Table><Table><tr><td></Table>Convert <code>int</code> to <code>short</code><p><a name="i2s.Forms"></a><b>Forms</b><br><a name="68408"></a><i>i2s</i> = 147 (0x93)<p><a name="i2s.Stack"></a><b>Stack</b><br><a name="68409"></a>..., <i>value</i><em> </em><img src="chars/arrwdbrt.gif"> ..., <i>result</i><p><a name="i2s.Description"></a><b>Description</b><br><a name="68410"></a>The <i>value</i> on the top of the operand stack must be of type <code>int</code>. It is popped from the operand stack, truncated to a <code>short</code>, then sign-extended to an <code>int</code> <i>result</i>. The <i>result</i> is pushed onto the operand stack.<p><a name="i2s.Notes"></a><b>Notes</b><br><a name="68411"></a>The <i>i2s</i> instruction performs a narrowing primitive conversion <a href="Concepts.doc.html#26142">(&#167;2.6.3)</a>. It may lose information about the overall magnitude of <i>value</i>. The <i>result</i> may also not have the same sign as <i>value</i>.<p><hr><!-- This inserts footnotes--><p><a href="VMSpecTOC.doc.html">Contents</a> | <a href="Instructions2.doc81.html">Prev</a> | <a href="Instructions2.doc83.html">Next</a> | <a href="Mnemonics.doc.html">Index</a><p><font size=-1>Java Virtual Machine Specification (HTML generated by dkramer on February 25, 1997)<br><i><a href="Copyright.doc.html">Copyright &#169 1996 Sun Microsystems, Inc.</a>All rights reserved</i><br>Please send any comments or corrections to <a href="mailto:doug.kramer@sun.com">doug.kramer@sun.com</a></font></body></html>

⌨️ 快捷键说明

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