<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Opcode</id>
	<title>Opcode - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Opcode"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Opcode&amp;action=history"/>
	<updated>2026-06-24T12:04:33Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Opcode&amp;diff=4505014&amp;oldid=prev</id>
		<title>imported&gt;Tcwcola：​修正筆誤(重複出現,)</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Opcode&amp;diff=4505014&amp;oldid=prev"/>
		<updated>2025-09-18T06:22:03Z</updated>

		<summary type="html">&lt;p&gt;修正筆誤(重複出現,)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Multiple issues|&lt;br /&gt;
{{Copy edit|time=2025-02-24T13:37:46+00:00}}&lt;br /&gt;
{{Expand language|1=en|time=2025-02-24T13:37:46+00:00}}&lt;br /&gt;
}}&lt;br /&gt;
在计算机领域，&amp;#039;&amp;#039;&amp;#039;操作码&amp;#039;&amp;#039;&amp;#039;（opcode，来源于 operation code 的缩写&amp;lt;ref name=&amp;quot;Barron_1978_Opcode&amp;quot;&amp;gt;{{cite book |author-first=David William |author-last=Barron  |editor-first=J. John |editor-last=Floretin |title=Assemblers and Loaders |date=1978 |orig-year=1971, 1969 |edition=3 |publisher=Elsevier North-Holland Inc. |series=Computer Monographs |publication-place=New York, USA |location=University of Southampton, Southampton, UK |isbn=0-444-19462-2 |lccn=78-19961 |chapter=2.1. Symbolic instructions |page=7}} (xii+100 pages)&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Chiba_2007&amp;quot;&amp;gt;{{cite web |title=Javassist, a Java-bytecode translator toolkit |author-first=Shigeru |author-last=Chiba |date=2007 |orig-year=1999 |url=http://www.docjar.org/html/api/javassist/bytecode/InstructionPrinter.java.html |access-date=2016-05-27 |url-status=live |archive-url=https://web.archive.org/web/20200302185725/http://www.docjar.org/html/api/javassist/bytecode/InstructionPrinter.java.html |archive-date=2020-03-02}}&amp;lt;/ref&amp;gt;），是[[机器语言]]指令中用于指定要执行操作的部分。除了操作码本身，大多数指令还会通过操作数（operand）的形式指定它们将要处理的数据。opcode是[[中央处理器]]（CPU）及[[算術邏輯單元]]（ALU）指令集架构中的操作码，但兩者處理方式不同。算術邏輯單元會將opcode匯入到其電路中，而中央处理器的opcode是其要執行[[机器语言]]的一部份。&lt;br /&gt;
&lt;br /&gt;
==CPU裡的opcode==&lt;br /&gt;
在CPU的機器語言指令中可以看到opcode，也在[[虛擬機器|抽象计算机]]中作为字节码规范的一部分使用。&lt;br /&gt;
也称为&amp;#039;&amp;#039;&amp;#039;指令机器码&amp;#039;&amp;#039;&amp;#039;（instruction machine code）、&amp;#039;&amp;#039;&amp;#039;指令码&amp;#039;&amp;#039;&amp;#039;（instruction code）、&amp;#039;&amp;#039;&amp;#039;指令字节&amp;#039;&amp;#039;&amp;#039;（instruction syllable）、&amp;#039;&amp;#039;&amp;#039;指令段&amp;#039;&amp;#039;&amp;#039;（instruction parcel）或&amp;#039;&amp;#039;&amp;#039;操作字符串&amp;#039;&amp;#039;&amp;#039;（opstring）。針對特定的處理器（可能是一般通用的中央處理器，或是特定的處理單元），其opcode是由處理器的[[指令集架構]] （ISA）所定義&amp;lt;ref name=&amp;quot;Hennessy_2017&amp;quot;&amp;gt;{{cite book |title=Computer architecture: A quantitative approach |author-last1=Hennessy |author-first1=John L. |author-last2=Patterson |author-first2=David A. |author-last3=Asanović |author-first3=Krste  |author-last4=Bakos |author-first4=Jason D. |author-last5=Colwell |author-first5=Robert P. |author-last6=Bhattacharjee |author-first6=Abhishek |author-last7=Conte |author-first7=Thomas M. |author-last8=Duato |author-first8=José |author-last9=Franklin |author-first9=Diana |author-last10=Goldberg |author-first10=David |author-last11=Jouppi |author-first11=Norman P. |author-last12=Li |author-first12=Sheng |author-last13=Muralimanohar |author-first13=Naveen |author-last14=Peterson |author-first14=Gregory D. |author-last15=Pinkston |author-first15=Timothy M. |author-last16=Ranganathan |author-first16=Parthasarathy |author-last17=Wood |author-first17=David A. |author-last18=Young |author-first18=Cliff |author-last19=Zaky |author-first19=Amr |date=2017-11-23 |edition=6 |publisher=Morgan Kaufmann Publishers |location=Cambridge, Massachusetts, USA |isbn=978-0-12811905-1 |oclc=983459758 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
，可以用{{link-en|opcode表|opcode table}}來說明。指令可能包括[[算术]]、資料複製、[[逻辑运算符]]、流程控制、以及特殊的指令（例如[[CPUID]]）&amp;lt;ref name=&amp;quot;Hennessy_2017&amp;quot;/&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
機器語言指令除了opcode外，也會標示需處理的資料（稱為operand），不過有些指令可能有隱藏的operand，也可能沒有operand&amp;lt;ref name=&amp;quot;Hennessy_2017&amp;quot;/&amp;gt;。有些指令集有一致的opcode和operand標示方式，而有些指令集（例如[[x86]]架構）則有較不一致，長度不同的指令&amp;lt;ref name=&amp;quot;Hennessy_2017&amp;quot;/&amp;gt;&amp;lt;ref name=&amp;quot;Mansfield_1983&amp;quot;&amp;gt;{{cite book |title=Machine Language For Beginners |chapter=Introduction: Why Machine Language? |author-first=Richard |author-last=Mansfield |date=1983 |series=Compute! Books]|publisher=COMPUTE! Publications, Inc., American Broadcasting Companies, Inc.; Small System Services, Inc. |location=Greensboro, North Carolina, USA |isbn=0-942386-11-6 |edition=1 |url=https://www.atariarchives.org/mlb/index.php |chapter-url=http://www.atariarchives.org/mlb/introduction.php |access-date=2016-05-28 |url-status=live |archive-url=https://web.archive.org/web/20080213090055/http://www.atariarchives.org/mlb/introduction.php |archive-date=2008-02-13}}&amp;lt;/ref&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
==相關條目==&lt;br /&gt;
*gadgets：[[返回导向编程]]中，一種ret 結尾的機器指令序列。&lt;br /&gt;
*{{le|Illegal opcode|Illegal opcode}} &lt;br /&gt;
==參考資料==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:机器码]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Tcwcola</name></author>
	</entry>
</feed>