Addressing Modes (Cambridge (CIE) A Level Computer Science) : Revision Note

Robert Hampton

Written by: Robert Hampton

Reviewed by: James Woodhouse

Updated on

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

MOV AX, 1234h

Moves the immediate value 1234h into the AX register

Direct

The exact memory address of the operand is given in the instruction

MOV AX, [1234h]

Moves the value stored at memory location 1234h into the AX register

Indirect

A register contains the memory address of the operand

MOV AX, [BX]

If BX = 2000h, this moves the value at memory location 2000h into AX

Indexed

Uses a base register and an index to calculate the memory address

MOV AX, [BX + SI]

If BX = 0050h and SI = 1000h, this moves the value at 1050h into the AX register

Relative

The operand is an offset relative to the current instruction address

JMP +5

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!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Robert Hampton

Author: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.