Modes of Addressing (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What do addressing modes in assembly language define?
What do addressing modes in assembly language define?
How instruction identifies data location
What are the four main addressing modes?
What are the four main addressing modes?
Immediate, direct, indirect, indexed
In immediate addressing, where is the operand located?
In immediate addressing, where is the operand located?
Directly in the instruction
Why is immediate addressing fast?
Why is immediate addressing fast?
It doesn't require a memory lookup
What does direct addressing specify in the instruction?
What does direct addressing specify in the instruction?
The memory address of the data
What is a disadvantage of direct addressing?
What is a disadvantage of direct addressing?
Addresses are hard-coded
What does indirect addressing use to locate data?
What does indirect addressing use to locate data?
A pointer to the data address
Why is indirect addressing slower than direct?
Why is indirect addressing slower than direct?
It requires an extra memory lookup
How is the effective address calculated in indexed addressing?
How is the effective address calculated in indexed addressing?
By adding base address to index value
What is indexed addressing commonly used for?
What is indexed addressing commonly used for?
Iterating over arrays or lists
In the example, what value is loaded by MOV A, #5?
In the example, what value is loaded by MOV A, #5?
The constant 5
What common mistake occurs with indexed addressing?
What common mistake occurs with indexed addressing?
Forgetting to update index register
