encyclopegia.org

Opcode

In computing, an opcode (abbreviated from operation code) 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.

In computing, an opcode (abbreviated from operation code) 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== 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, instruction code, instruction syllable, instruction parcel, or opstring. 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). 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). 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. 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. Instruction sets can be extended through opcode prefixes, which add a subset of new instructions made up of existing opcodes following reserved byte sequences. ===Sample opcode table=== 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 one of eight result conditions 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. == Software instruction sets== 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. ==See also== Gadget (machine instruction sequence) Illegal opcode Syllable (computing) Fused operation ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Opcode." encyclopegia.org, 2026, https://encyclopegia.org/wiki/opcode. Accessed 23 November 2026.

Chicago

"Opcode." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/opcode.

APA

encyclopegia.org. (2026). Opcode. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/opcode

Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Alexander Scriabin

enwiki · references available

Costs in English law

enwiki · references available

BMP-1

enwiki · references available

Symphony No. 9 (Mahler)

enwiki · references available

Adam's Bridge

enwiki · references available

Amber Valley

enwiki · references available

Rashid Ali al-Gaylani

enwiki · references available

Coat of arms of Sweden

enwiki · references available

Dispersed knowledge

enwiki · references available

Roundaboutness

enwiki · references available

Charles Mathews

enwiki · references available

Capital intensity

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1362920631 · 0.5 · snapshot enwiki-001362920631

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.