Encyclopedia > Opcode

  Article Content

Opcode

A computer can perform operations. Each operation is assigned a numeric code. These codes are called an Opcode. Since humans are terrible at memorizing lots of similar numeric codes, mnemonics are used as a textual abbreviation. It's much easier to remember ADD than it is 05, for instance.

Opcodes operate on registers, values in memory, values stored on the stack, i/o ports, the bus, etc. They are used to perform arithmetic operations and move and change values. Operands are the things that Opcodes operate on.

Byte codes are another term for op codes, especially when they are used to describe higher level constructs as is the case with the Java Language's JVM (Java Virtual Machine). For instance, byte code 1A might be the "iconst_2" instruction which pushes the number 2 on the stack. This is a slightly higher level of abstraction, than opcodes, which might need to load the number 2 into a register, and then push the register's value on the stack.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Christiania

... to: Christiania - the name of Oslo, from 1624 to 1925. The Free State of Christiania - a partially self-governing neighborhood in the city of Copenhagen. This is a ...

 
 
 
This page was created in 22.3 ms