logo

AQA A-Level Computer Science practice

Assume an accumulator and memory location 50 initially contain 0. Trace the following mnemonic instructions and state the final contents of the accumulator and memory location 50. Explain where immediate and direct addressing are used. LOAD #6 ADD #4 STORE 50 LOAD 50 SUBTRACT #3 HALT

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

Assume an accumulator and memory location 50 initially contain 0. Trace the following mnemonic instructions and state the final contents of the accumulator and memory location 50. Explain where immediate and direct addressing are used. LOAD #6 ADD #4 STORE 50 LOAD 50 SUBTRACT #3 HALT.

Answer and explanation

Concise answer

After LOAD #6, the accumulator contains 6.

Why this is correct

The trace must distinguish an operand that is a value from an operand that identifies a memory address. STORE changes memory as well as leaving the accumulator unchanged; LOAD 50 then retrieves the stored value. HALT ends the sequence and does not alter the values.

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