โ† Microprocessors & Microcontrollers learning path
Microprocessors & Microcontrollers ยท Module 3 of 10

Instruction set and addressing modes

How instructions name their data.

๐Ÿ“– Key ideas

  1. Immediate: data is in the instruction (MVI A, 32H).
  2. Register: data is in a register (MOV A, B).
  3. Direct: the instruction gives the memory address (LDA 2050H).
  4. Register indirect: a register pair holds the address (MOV A, M uses HL).
  5. Instruction groups: data transfer, arithmetic, logical, branching and machine control.
๐Ÿ’ก Real-life example: Addressing modes are like giving directions: hand over the item (immediate), say which pocket (register), give the house address (direct), or say "the address is written on this note" (indirect).
Immediate addressingData is part of the instruction
Direct addressingInstruction contains the memory address
Indirect addressingA register holds the address of the data
OpcodePart of an instruction naming the operation