Opcode

From Wikipedia, the free encyclopedia

(Redirected from Operation code)
Jump to: navigation, search

In computer science, an opcode (Operation Code) is the portion of a machine language instruction that specifies the operation to be performed. Their specification and format will be laid out in the instruction set architecture (ISA) of the computer hardware component in question—normally a CPU, but possibly a more specialized unit. A complete machine language instruction contains an opcode and, optionally, the specification of one or more operands—what data the operation should act upon. Some operations have implicit operands, or indeed none. Some ISAs have instructions with defined fields for opcodes and operands, while others (e.g. the Intel x86 architecture) have a more complicated and ad-hoc structure.

The operands upon which opcodes operate may, depending on CPU architecture, consist of registers, values in memory, values stored on the stack, I/O ports, the bus, etc. The operations an opcode may specify can include arithmetic, data copying, logical operations, and program control.

Opcodes can also be found in byte codes interpreted by a byte code interpreter (or virtual machine, in one sense of that term). In these, an instruction set architecture is created to be interpreted by software, rather than a hardware device. Often, byte code interpreters work with higher-level data types and operations than a hardware instruction set, but are constructed along similar lines. Examples include the Java programming language's Java Virtual Machine (JVM), the byte code used in GNU Emacs for compiled LISP code, and many others.

Machine language is tedious and difficult for humans to program in directly, so if the abstraction given by a higher-level programming language is not desired, an assembly language is used. Here, mnemonic instructions are used that correspond to the opcode and operand specifications of the machine language instructions generated. This gives a greater level of readability and comprehensibility than working with machine language operations directly, while still giving accurate control of the machine language generated. A program called an assembler transforms assembly language into machine code.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.