碳酸氢钠是什么添加剂| 避孕套和安全套有什么区别| 梅花什么时候开放| 蔚字五行属什么| 雏凤是什么意思| 青蒜是什么| 子宫肌瘤是什么病严重吗| 吃了火龙果不能吃什么| 日文上下结构念什么| 包干价是什么意思| 晚八点是什么时辰| 痛风都不能吃什么东西| 不想怀孕有什么办法| 女人最大的底气是什么| 降血脂吃什么食物| 肾结石吃什么好| 春什么秋什么的成语| 全身浮肿是什么病| 什么炒肉| c反应蛋白是什么意思| 减肥最快的运动是什么运动| 胃病喝什么茶养胃| anxiety什么意思| 颈部多发淋巴结是什么意思| loho是什么牌子| 祛火喝什么茶| 胃溃疡吃什么食物| 棉絮是什么意思| 草酸是干什么用的| 志字五行属什么| 梦到屎是什么意思| 解脲支原体阳性吃什么药| 乌龙茶属于什么茶| 什么手机拍照效果最好| psa是什么| 心脏彩超fs是什么意思| 阿玛尼手表算什么档次| 贫血是什么原因| 不能吃辛辣是指什么| 97年属什么的生肖| 吃烧烤后吃什么水果可以帮助排毒| 桃和什么不能一起吃| 嘴巴里长泡是什么原因| 兑卦代表什么| 尿频尿急是什么症状| seifini是什么牌子| 种植牙是什么意思| ras医学上是什么意思| 脱臼是指什么从什么中滑脱| 下巴下面是什么部位| 缺铁性贫血吃什么水果| 水变成冰为什么体积变大| 绿字五行属什么| 犯罪是什么意思| 狗为什么不能吃葡萄| 眼袋是什么原因引起的| 感光度是什么意思| 牛奶和什么不能一起吃| 1995年五行属什么| 孩子流黄鼻涕是什么原因| 银耳和雪耳有什么区别| 偏头疼吃什么药好| 养胃喝什么茶好| 身上没力气没劲是什么原因| 1993年属什么| 肠道菌群失调吃什么药| 唐筛检查什么| 部队班长是什么军衔| fans是什么意思| 肚皮疼是什么原因| 农历十月是什么星座| 过敏喝什么药| 人人有的是什么生肖| 鼻腔干燥是什么原因| 鼻炎是什么| 肚子痛吃什么药| 九孔藕和七孔藕有什么区别| ckmb是什么意思| 无故流鼻血是什么原因| 职业病是指什么| 乌鸡白凤丸有什么功效| 肚脐右侧是什么器官| 逍遥丸是治什么的| 张国立老婆叫什么名字| 已所不欲勿施于人是什么意思| 萤火虫为什么发光| 活检是什么检查| 乌鸡汤放什么材料| 原发性是什么意思| 喝茶叶茶有什么好处| 吃什么可以排毒| 哪吒属什么生肖| 狗狗肠胃不好吃什么药最好| gb10769是什么标准| 细菌性结膜炎用什么眼药水| 吃了虾不能吃什么水果| 树菠萝什么时候成熟| 皓是什么意思| 趴着睡觉是什么原因| 微波炉蒸鸡蛋羹几分钟用什么火| 医师是什么意思| 珠地棉是什么面料| 玉米须泡水喝有什么功效| 羊水指数和羊水深度有什么区别| 攒肚是什么意思| 吃什么容易滑胎流产| 被鬼缠身有什么症状| 手指甲软薄是缺什么| 艾灸脚心有什么好处| 铿锵玫瑰是什么意思| 天珺手表什么档次| 东北冻梨是什么梨| 志心皈命礼是什么意思| 干眼症滴什么眼药水好| 阴囊潮湿吃什么中成药| 血压不稳定是什么原因| 为什么不说话| 2.22是什么星座| 荷兰的国花是什么花| 什么品种的狗最粘人| t是什么意思| 疤痕子宫什么意思| 麦芽糖醇是什么| 猫咪呕吐吃什么药| 痔疮吃什么药| 随机血糖是什么意思| 拉出黑色的屎是什么原因| 口吐白沫是什么原因| 什么是可转债| 糖醋里脊是什么肉| 没有子宫会有什么影响| 路亚竿什么品牌好| 为什么会下雨| 舌苔发白是什么病| 2001年属蛇五行属什么| 什么鱼是深海鱼| her是什么意思| 鳞状上皮增生是什么意思| 吃饭咬舌头是什么原因| 脚掉皮是什么原因| 长期手淫会有什么危害| 怀孕分泌物是什么样的| 三月七号是什么星座| 女性腰疼是什么原因| sp是什么| 身份证更换需要带什么| 月经不调有什么症状| 碳酸盐是什么| 便秘是什么原因引起的| 无极是什么意思| 保妇康栓是治疗什么的| 青春期指什么年龄段| 最大的哺乳动物是什么| 头疼头晕是什么原因| 晚上看见蛇有什么预兆| 反流性食管炎能吃什么水果| 铂金什么颜色| 膀胱过度活动症吃什么药| 胃酸是什么颜色的| 糜米是什么米| 汗毛重的女人意味着什么| 结肠多发憩室是什么意思| 突然长胖是什么原因造成的| 梦见葡萄是什么意思| 纳财适合做什么| 舌苔厚白湿气重吃什么药| 人工荨麻疹是什么原因引起的| 膝盖不好的人适合什么运动| 列文虎克发明了什么| 安之若素什么意思| 火高念什么| 肝肾阴虚吃什么药| 转移灶是什么意思| 水烟是什么| 封建社会是什么意思| 十一月是什么月| 脑梗吃什么东西好| 口腔痛什么原因| 中性粒细胞偏高是什么原因| 电解质氯高是什么原因| 孤辰寡宿是什么意思| 失眠为什么开奥氮平片| 为什么会打鼾| 愚者是什么意思| 高氨血症是什么病| 1989是什么年| 尿毒症有些什么症状| 香茗是什么意思| 脑供血不足是什么症状| 什么字笔画最多| 癌胚抗原偏高说明什么| 梦到老虎是什么意思| 脑袋疼挂什么科| 盗墓笔记的结局是什么| 促狭一笑是什么意思| 大便潜血阳性意味着什么| 福寿延绵是什么意思| 冠心病喝什么茶最好| 京东pop是什么意思| 什么的礼物| 一什么头发| 痘痘破了涂什么药膏| 黄芪喝多了有什么副作用| 梦见自己坐火车是什么意思| 小孩头疼是什么原因| 银杯子喝水有什么好处| 菲妮迪女装是什么档次| 为什么精液是黄色的| 168红包代表什么意思| 呼吸道感染一般用什么消炎药| 为什么分泌物是褐色的| 溃疡吃什么水果| 什么水果含钾| 结婚送什么礼物最合适| 什么水果补气血| 乙肝是什么意思| 牙齿松动吃什么药最好| 50岁是什么之年| 梦见买衣服是什么意思| 心脏不大是什么意思| 什么是梦想| 粽子是什么意思| 神经官能症是什么症状| 怒发冲冠是什么意思| 分泌物豆腐渣状是什么原因| catl是什么意思| 脚踝肿了是什么原因| 甲功不正常有什么表现| 宫颈炎盆腔炎吃什么药效果最好| 什么虫子咬了像针扎一样疼| 青蛙什么| 现在最好的避孕方法是什么| 什么是m| 羯羊是什么羊| 外阴瘙痒抹什么药| 11月10日是什么星座| 5.19是什么星座| Rm是什么| 更年期看什么科| 脸上黑色的小点是什么| 大姨妈来了吃什么好| 制动什么意思| 什么是春梦| 左边太阳穴疼是什么原因| 鼻涕臭是什么原因| 湿气太重吃什么药最好| 扑感敏又叫什么名字| 失眠看什么科| 狮子座是什么性格| 多酚是什么| 7.13是什么日子| 四级什么时候报名| 什么地溜达| 口吐白沫是什么原因| 更年期一般在什么年龄| 内子是什么意思| 250为什么是骂人的话| 早晨起来口苦是什么原因| 4.8什么星座| 中二是什么意思| 祝好是什么意思| 三个土是什么字怎么读| 雍是什么意思| 煮牛骨头放什么调料| 百度Jump to content

及什么意思

From Wikipedia, the free encyclopedia
(Redirected from Operation code)
百度 公司上市前,曾经有员工问她:何总啊,什么时候我们能歇歇啊?何巧女当时回答说:上市以后就好了。

In computing, an opcode (abbreviated from operation code)[1][2] is an enumerated value that specifies the operation to be performed. Opcodes are employed in hardware devices such as arithmetic logic units (ALUs), central processing units (CPUs), and software instruction sets. In ALUs, the opcode is directly applied to circuitry via an input signal bus. In contrast, in CPUs, the opcode is the portion of a machine language instruction that specifies the operation to be performed.

CPUs

[edit]

Opcodes are found in the machine language instructions of CPUs as well as in some abstract computing machines. In CPUs, an opcode may be referred to as an instruction machine code,[3] instruction code,[4] instruction syllable,[5][6][7][8] instruction parcel, or opstring.[9][2] For any particular processor (which may be a general CPU or a more specialized processing unit), the opcodes are defined by the processor's instruction set architecture (ISA).[10] They can be described using an opcode table. The types of operations may include arithmetic, data copying, logical operations, program control, and special instructions (e.g., CPUID).[10]

In addition to the opcode, many instructions specify the data (known as operands) the operation will act upon, although some instructions may have implicit operands or none.[10] Some instruction sets have nearly uniform fields for opcode and operand specifiers, whereas others (e.g., x86 architecture) have a less uniform, variable-length structure.[10][11] Instruction sets can be extended through opcode prefixes, which add a subset of new instructions made up of existing opcodes following reserved byte sequences.[citation needed]

Sample opcode table

[edit]

This table shows opcodes of a simple 8-bit microprocessor, the Intel 8008 from 1972.

Each opcode is 8 bits long. Each is shown as a binary pattern of ones and zeros in the Opcode column. Up to two additional fields may be embedded into the opcode. Some 3-bit fields are labeled DDD, SSS, CC, and ALU. The SSS (source) and DDD (destination) fields specify one of the eight possible 8008 registers or memory: A, B, C, D, E, H, L, or M. CC specifies a condition that will activate certain JMP, CAL, and RET instructions. ALU specifies one of a possible eight arithmetic logic unit functions to be performed during an instruction, specifically, add, add with carry, subtract, subtract with borrow, logical AND, logical XOR, logical OR, and compare. The X in some fields means that either a 1 or 0 can be inserted with no effect.

The fixed ones and zeros are combined with the parameter fields to build the 8-bit opcode. Additionally, the full instruction might require one or two additional bytes of operands. These are shown in the second major column of the table, labeled Operands. If no operands are required, the column is filled with a dash (—).

Since the ones and zeros are difficult to remember, the Mnemonic column shows a short, easy to remember letter code that an assembly language programmer may use to invoke the required opcode.

The Description column shows the function performed by the microprocessor when it encounters a specific opcode.

Opcode Operands Mnemonic Description
7 6 5 4 3 2 1 0 b2 b3
0 0 0 0 0 0 0 X HLT Halt
0 0 DDD 0 0 0 INr DDD ← DDD + 1 (except A and M)
0 0 DDD 0 0 1 DCr DDD ← DDD - 1 (except A and M)
0 0 0 0 0 0 1 0 RLC A1-7 ← A0-6; A0 ← Cy ← A7
0 0 CC 0 1 1 Rcc (RET conditional) If cc true, P ← (stack)
0 0 ALU 1 0 0 data ADI ACI SUI SBI NDI XRI ORI CPI data A ← A [ALU operation] data
0 0 N 1 0 1 RST n (stack) ← P, P ← N x 8
0 0 DDD 1 1 0 data LrI data (Load r with immediate data) DDD ← data
0 0 X X X 1 1 1 RET P ← (stack)
0 0 0 0 1 0 1 0 RRC A0-6 ← A1-7; A7 ← Cy ← A0
0 0 0 1 0 0 1 0 RAL A1-7 ← A0-6; Cy ← A7; A0 ← Cy
0 0 0 1 1 0 1 0 RAR A0-6 ← A1-7; Cy ← A0; A7 ← Cy
0 1 CC 0 0 0 addlo addhi Jcc add (JMP conditional) If cc true, P ← add
0 1 0 0 port 1 INP port A ← Port (ports 0-7 only)
0 1 port 1 OUT port Port ← A (ports 8-31 only)
0 1 CC 0 1 0 addlo addhi Ccc add (CAL conditional) If cc true, (stack) ← P, P ← add
0 1 X X X 1 0 0 addlo addhi JMP add P ← add
0 1 X X X 1 1 0 addlo addhi CAL add (stack) ← P, P ← add
1 0 ALU SSS ADr ACr SUr SBr NDr XRr ORr CPr A ← A [ALU operation] SSS
1 1 DDD SSS Lds (Load d with s) DDD ← SSS
1 1 1 1 1 1 1 1 HLT Halt
7 6 5 4 3 2 1 0 b2 b3 Mnemonic Description
SSS DDD 2 1 0 CC ALU
A 0 0 0 FC, C false ADr ADI (A ← A + arg)
B 0 0 1 FZ, Z false ACr ACI (A ← A + arg + Cy)
C 0 1 0 FS, S false SUr SUI (A ← A - arg)
D 0 1 1 FP, P odd SBr SBI (A ← A - arg - Cy)
E 1 0 0 TC, C true NDr NDI (A ← A ∧ arg)
H 1 0 1 TZ, Z true XRr XRI (A ← A ? arg)
L 1 1 0 TS, S true ORr ORI (A ← A ∨ arg)
M 1 1 1 TP, P even CPr CPI (A - arg)
SSS DDD 2 1 0 CC ALU

Software instruction sets

[edit]

Opcodes can be found in bytecodes and other representations intended for execution by software interpreters. These often employ slightly higher-level data types and operations than those found in hardware opcodes but are nevertheless constructed along similar lines. Examples include the byte code found in Java class files, which are interpreted by Java virtual machines, the byte code used in GNU Emacs for compiled Lisp code, and NET Common Intermediate Language.[12]

See also

[edit]

References

[edit]
  1. ^ Barron, David William (1978) [1971, 1969]. "2.1. Symbolic instructions". Written at University of Southampton, Southampton, UK. In Floretin, J. John (ed.). Assemblers and Loaders. Computer Monographs (3 ed.). New York, USA: Elsevier North-Holland Inc. p. 7. ISBN 0-444-19462-2. LCCN 78-19961. (xii+100 pages)
  2. ^ a b Chiba, Shigeru (2007) [1999]. "Javassist, a Java-bytecode translator toolkit". Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  3. ^ "Appendix B - Instruction Machine Codes" (PDF). MCS-4 Assembly Language Programming Manual - The INTELLEC 4 Microcomputer System Programming Manual (Preliminary ed.). Santa Clara, California, USA: Intel Corporation. December 1973. pp. B-1 – B-8. MCS-030-1273-1. Archived (PDF) from the original on 2025-08-05. Retrieved 2025-08-05.
  4. ^ Raphael, Howard A., ed. (November 1974). "The Functions Of A Computer: Instruction Register And Decoder" (PDF). MCS-40 User's Manual For Logic Designers. Santa Clara, California, USA: Intel Corporation. p. viii. Archived (PDF) from the original on 2025-08-05. Retrieved 2025-08-05. […] Each operation that the processor can perform is identified by a unique binary number known as an instruction code. […]
  5. ^ Jones, Douglas W. (June 1988). "A Minimal CISC". ACM SIGARCH Computer Architecture News. 16 (3). New York, USA: Association for Computing Machinery (ACM): 56–63. doi:10.1145/48675.48684. S2CID 17280173.
  6. ^ Domaga?a, ?ukasz (2012). "7.1.4. Benchmark suite". Application of CLP to instruction modulo scheduling for VLIW processors. Gliwice, Poland: Jacek Skalmierski Computer Studio. pp. 80–83 [83]. ISBN 978-83-62652-42-6. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  7. ^ Smotherman, Mark (2016) [2013]. "Multiple Instruction Issue". School of Computing, Clemson University. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  8. ^ Jones, Douglas W. (2016) [2012]. "A Minimal CISC". Computer Architecture On-Line Collection. Iowa City, USA: The University of Iowa, Department of Computer Science. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  9. ^ Schulman, Andrew (2025-08-05). "Finding Binary Clones with Opstrings & Function Digests". Dr. Dobb's Journal. Part I. Vol. 30, no. 7. CMP Media LLC. pp. 69–73. ISSN 1044-789X. #374. Archived from the original on 2025-08-05. Retrieved 2025-08-05; Schulman, Andrew (2025-08-05). "Finding Binary Clones with Opstrings & Function Digests". Dr. Dobb's Journal. Part II. Vol. 30, no. 8. CMP Media LLC. pp. 56–61. ISSN 1044-789X. #375. Archived from the original on 2025-08-05. Retrieved 2025-08-05; Schulman, Andrew (2025-08-05). "Finding Binary Clones with Opstrings & Function Digests". CMP Media LLC. Part III. Vol. 30, no. 9. United Business Media. pp. 64–70. ISSN 1044-789X. #376. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  10. ^ 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 (2025-08-05). Computer architecture: A quantitative approach (6 ed.). Cambridge, Massachusetts, USA: Morgan Kaufmann Publishers. ISBN 978-0-12811905-1. OCLC 983459758.
  11. ^ Mansfield, Richard (1983). "Introduction: Why Machine Language?". Machine Language For Beginners. Compute! Books (1 ed.). Greensboro, North Carolina, USA: COMPUTE! Publications, Inc., American Broadcasting Companies, Inc.; Small System Services, Inc. ISBN 0-942386-11-6. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  12. ^ "bytecode Definition". PC Magazine. PC Magazine Encyclopedia. Archived from the original on 2025-08-05. Retrieved 2025-08-05.


化疗为什么要剃光头 edp是什么意思 1979年出生属什么生肖 高血压吃什么降压药 音序是什么
乳腺纤维瘤和乳腺结节有什么区别 c2是什么 心血管堵塞吃什么药 养殖什么最赚钱 生米煮成熟饭是什么意思
唠叨是什么意思 急性胰腺炎吃什么药 无间道是什么意思 晚上八点半是什么时辰 塔克是什么食物
什么无什么事 碧螺春属于什么茶 八府巡按是什么官 减肥什么时候喝牛奶 梦见别人给我介绍对象是什么意思
送医生什么礼物好hcv9jop1ns8r.cn 肛门跳动是什么原因shenchushe.com 做梦抓到很多鱼是什么征兆hcv9jop6ns6r.cn 张飞的武器叫什么hcv8jop9ns3r.cn 氩气是什么气体hcv8jop5ns7r.cn
16岁可以做什么工作hcv9jop7ns0r.cn 什么开什么笑hcv9jop0ns7r.cn 什么的柳树hcv7jop5ns1r.cn 吃什么药能延迟射精hcv9jop4ns2r.cn moo是什么意思hcv9jop2ns1r.cn
唐僧的真名叫什么hcv9jop2ns2r.cn 花中皇后是什么花hcv8jop0ns9r.cn 什么是阴虱hcv7jop6ns2r.cn 感冒引起的喉咙痛吃什么药hcv8jop1ns3r.cn 小叶紫檀有什么功效cj623037.com
褒义词是什么意思hcv8jop2ns8r.cn 老火汤是什么意思bysq.com 老是放屁是什么原因hcv7jop6ns4r.cn 什么东西补血效果最好hcv8jop9ns2r.cn 全身发热是什么原因hcv8jop9ns3r.cn
百度