Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1ACC ← ACC + MDR | AThis describes the start of the fetch stage, not execute. In execute the decoded instruction is carried out, e.g. an ALU calculation or a change to the PC. | |
| 2PC ← 20 | BThe ALU adds the data fetched from memory to the value in the accumulator, and the result is held in the ACC | |
| 3During execute, the CPU may fetch further data from RAM by placing an address on the address bus and reading the value back on the data bus | CMAR ← 50, MDR ← RAM[MAR] | |
| 4During execute, the result of an ALU calculation is stored in the accumulator | DACC ← ALU result | |
| 5Execute stage: the instruction is copied from the PC into the MAR | EThe result of an ALU calculation is stored in the accumulator (ACC), not the MAR. The MAR only holds a memory address. | |
| 6Execute: the ALU calculates and the result is stored in the MAR | FA jump instruction is executed, so the program counter is changed and the next fetch comes from address 20 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
execute — The stage of the fetch-decode-execute cycle where the decoded instruction is carried out, e.g. fetching data, calculating in the ALU, storing in the ACC, or changing the PC.Execute ADD: ACC ← ACC + MDRThe result of the ALU is stored in the ACCExecute JMP 20: PC ← 20LDA 50: address 50 sent on the address busExecute: ALU adds, ACC stores the result