Instruction set

Updated: 09/12/2023 by Computer Hope

The instruction set, also called ISA (instruction set architecture), is part of a computer that pertains to programming, which is more or less machine language. The instruction set provides commands to the processor to tell it what it needs to do. The instruction set consists of addressing modes, instructions, native data types, registers, memory architecture, interrupt, exception handling, and external I/O.

Tip

The first CPU, the Intel 4004, had an instruction set of 46 instructions. Today's computers have thousands of instructions.

An example of an instruction set is the x86 instruction set, which is common on computers today. Different computer processors can use almost the same instruction set with different internal designs. The Intel Pentium and AMD Athlon processors use nearly the same x86 instruction set. An instruction set can be built into the processor's hardware or emulated in software using an interpreter. The hardware design is more efficient and faster for running programs than the emulated software version.

Examples of instruction set

  • ADD - Add two numbers together.
  • COMPARE - Compare numbers.
  • IN - Input information from a device, e.g., keyboard.
  • JUMP - Jump to the designated RAM (random-access memory) address.
  • JUMP IF - Conditional statement that jumps to a designated RAM address.
  • LOAD - Load information from RAM to the CPU (central processing unit).
  • OUT - Output information to a device, e.g., monitor.
  • STORE - Store information in RAM.

CPU terms, Instruction, ISA