Addressing Modes (Cambridge (CIE) A Level Computer Science) : Revision Note
Addressing methods
What is an addressing method?
An addressing method is a way in which an instruction in assembly language or machine code can access data stored in memory
There are five main addressing methods:
Immediate
Direct
Indirect
Indexed
Relative
Addressing mode | Description | Example instruction | Explanation |
---|---|---|---|
Immediate | The operand is a constant value included directly in the instruction |
| Moves the immediate value |
Direct | The exact memory address of the operand is given in the instruction |
| Moves the value stored at memory location |
Indirect | A register contains the memory address of the operand |
| If |
Indexed | Uses a base register and an index to calculate the memory address |
| If |
Relative | The operand is an offset relative to the current instruction address |
| Tells the program to jump forward 5 instructions from the current line Used in branching |
You've read 0 of your 5 free revision notes this week
Unlock more, it's free!
Did this page help you?