CPU裡的opcode#edit
在CPU的機器語言指令中可以看到opcode,也在抽象计算机中作为字节码规范的一部分使用。 也称为指令机器码(instruction machine code)、指令码(instruction code)、指令字节(instruction syllable)、指令段(instruction parcel)或操作字符串(opstring)。針對特定的處理器(可能是一般通用的中央處理器,或是特定的處理單元),其opcode是由處理器的指令集架構 (ISA)所定義[3] ,可以用opcode表來說明。指令可能包括算术、資料複製、逻辑运算符、流程控制、以及特殊的指令(例如CPUID)[3]。
機器語言指令除了opcode外,也會標示需處理的資料(稱為operand),不過有些指令可能有隱藏的operand,也可能沒有operand[3]。有些指令集有一致的opcode和operand標示方式,而有些指令集(例如x86架構)則有較不一致,長度不同的指令[3][4]。
相關條目#edit
- gadgets:返回导向编程中,一種ret 結尾的機器指令序列。
- Illegal opcode
參考資料#edit
- ^ Barron, David William. 2.1. Symbolic instructions. 写于University of Southampton, Southampton, UK. Floretin, J. John (编). Assemblers and Loaders. Computer Monographs 3. New York, USA: Elsevier North-Holland Inc. 1978: 7 [1971, 1969]. ISBN 0-444-19462-2. LCCN 78-19961. (xii+100 pages)
- ^ Chiba, Shigeru. Javassist, a Java-bytecode translator toolkit. 2007 [1999] [2016-05-27]. (原始内容存档于2020-03-02).
- ^ a b c d Hennessy, John L.; Patterson, David A.; Asanović, Krste; Bakos, Jason D.; Colwell, Robert P.; Bhattacharjee, Abhishek; Conte, Thomas M.; Duato, José; Franklin, Diana; Goldberg, David; Jouppi, Norman P.; Li, Sheng; Muralimanohar, Naveen; Peterson, Gregory D.; Pinkston, Timothy M.; Ranganathan, Parthasarathy; Wood, David A.; Young, Cliff; Zaky, Amr. Computer architecture: A quantitative approach 6. Cambridge, Massachusetts, USA: Morgan Kaufmann Publishers. 2017-11-23. ISBN 978-0-12811905-1. OCLC 983459758.
- ^ Mansfield, Richard. Introduction: Why Machine Language?. Machine Language For Beginners. Compute! Books] 1. Greensboro, North Carolina, USA: COMPUTE! Publications, Inc., American Broadcasting Companies, Inc.; Small System Services, Inc. 1983 [2016-05-28]. ISBN 0-942386-11-6. (原始内容存档于2008-02-13).
Categories 机器码
This article is mirrored from “Opcode” on 中文 Wikipedia, revision 93523825, written by Wikipedia's contributors and licensed CC BY-SA 4.0. Editing it here creates a Quire copy with its own history.
Synced with Wikipedia revision 93523825 · just now