logo

AQA A-Level Computer Science practice

An instruction must use a value of 12. Describe how the instruction would be interpreted if it used immediate addressing, and contrast this with the interpretation if it used direct addressing and its operand were 12. State what additional location would be needed in the direct-addressing case.

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

practice

Style

Topic

Structure and role of the processor and its components

Exam-style question

Try this first

An instruction must use a value of 12. Describe how the instruction would be interpreted if it used immediate addressing, and contrast this with the interpretation if it used direct addressing and its operand were 12. State what additional location would be needed in the direct-addressing case.

Answer and explanation

Concise answer

With immediate addressing, the operand 12 is the datum, so the instruction uses the value 12 directly.

Why this is correct

The same written operand can have different meanings depending on the addressing mode. Immediate addressing treats 12 as the value itself. Direct addressing treats 12 as a location identifier, so the datum must be obtained from the main-memory location or register associated with that address.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions