MicroOperation (original) (raw)

Micro-Operation

Last Updated : 11 Apr, 2026

**Micro-operations (also known as micro-ops) are the functional, or atomic, operations of a processor. These are low-level instructions used in some designs to implement complex machine instructions. They generally perform operations on data stored in one or more registers.

The prefix 'micro' refers to the fact that each of the steps is very simple.

1

Micro-operations are small tasks performed inside the CPU. These tasks use data stored in the CPU’s registers to do basic operations like math or logic tasks. They also help move data between registers or between memory and registers.

How Micro-Operations Work?

Micro-operations are combined to perform more complex instructions. For example, an addition instruction might involve several micro-operations:

Types of Micro-Operations

Micro-operations generally fall into four major types:

Examples of Micro-Operations

  1. **Load: Moves data from memory into a register.
  2. **Store: Saves data from a register back into memory.
  3. **Add: Adds two values and stores the result in a register.
  4. **Subtract: Subtracts one value from another and stores the result in a register.
  5. **AND: Performs a logical AND operation on two values and stores the result in a register.
  6. **OR: Performs a logical OR operation on two values and stores the result in a register.
  7. **NOT: Reverses the bits of a value and stores the result in a register.
  8. **Shift: Moves the bits of a value to the left or right within a register.
  9. **Rotate: Rotates the bits of a value left or right in a register.