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 | AThe program counter (PC) holds the address of the next instruction. The accumulator holds data and results of ALU calculations. | |
| 2ACC ← ACC + MDR | BThe accumulator, a CPU register that holds the data being worked on and the results of ALU calculations | |
| 3The accumulator stores an intermediate result while a calculation is still in progress | CACC ← 5 + 3 (then ACC ← ACC * 2) | |
| 4After the ALU finishes, the result in the accumulator is saved back to memory or output | DThe ALU adds the value fetched from memory to the value in the accumulator, and the new result replaces the old value in ACC | |
| 5The ACC fetches instructions from RAM and decodes them | EThe accumulator does not fetch or decode instructions. It holds data and ALU results. The CIR holds the current instruction and the control unit decodes it. | |
| 6The ACC holds the address of the next instruction to run | FSTORE 200 (copies ACC to address 200) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Accumulator (ACC) — A register in the CPU that holds data being worked on and the results of ALU calculations, storing intermediate results before they are saved back to memory or output.ACC ← 8 + 2LDA 20
ADD 21
STA 22ACC ← 9 - 4
OUTPUT ACCLDA 20
ADD 21
STA 22ACC ← 6
ACC ← ACC * 4
STA 30