Worked solution from the Processor Fundamentals Paper 1 Theory Fundamentals booklet, Part 2 of 3.
MAR and MDR each score up to 2.
MAR stores the address of the next instruction to be fetched [1]
This address is copied from the Program Counter, and the data at it is then fetched [1]
MDR stores the data fetched from the address in MAR [1]
The data is then copied to the Current Instruction Register [1]
Any one of: Program Counter (PC), Current Instruction Register (CIR), Status Register, Interrupt register [1]
Do each operation bit by bit. Address 101 = 11110000, 104 = 11111111, 102 = 00001111.
| Current contents of the ACC | Instruction | New contents of the ACC |
|---|---|---|
| 01010101 | XOR 101 | 10100101 |
| 11110000 | AND 104 | 11110000 |
| 00001111 | LSL #4 | 11110000 |
| 11111111 | OR 102 | 11111111 |
XOR 101: 10100101 [1]
AND 104: 11110000 [1]
LSL #4: 11110000 [1]
OR 102: 11111111 [1]
Choose one instruction from the table for each group:
| Instruction Group | Instruction |
|---|---|
| Data movement | LDM #2 |
| Input and output of data | IN |
| Arithmetic operations | INC ACC |
| Unconditional and conditional instructions | JMP 100 |
| Compare instructions | CMP 100 |
Input and output: IN (or OUT) [1]
Arithmetic: INC ACC (or INC IX) [1]
Unconditional and conditional: JMP or JPN with an address [1]
Compare: CMP with an address [1]
Any one of these modes:
Mode name: Indirect addressing [1]
Description: the address to be used is at the given address (the contents of that address is the address of the data) [1]
Other accepted answers: relative addressing (address is an offset from the current instruction), or indexed addressing (given address plus the Index Register), each with its matching description.
▶ Starts at Q8 (36:19)
Starts at Q8 (36:19) · by HyperDavester. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.