Question 1
A digital coffee making machine has a CPU that uses the Little Man Computer Instruction Set.
Little Man Computer operates on a computer system based on the Von Neumann Architecture.
State two features of the Von Neumann architecture.
2
[2]
Describe one feature, not part of the standard Von Neumann Architecture, which contemporary CPUs may have in order to improve performance.
[2]
Part of the coffee making machine’s code asks the user to press a button to select strength. The code outputs 1 which will switch on a green light to indicate a valid selection or outputs 0 to indicate an invalid selection.
The code is shown below:
Tick the appropriate boxes below to indicate which inputs will result in a green light (i.e. code outputs 1) and which with a red light.
[2]
Explain which registers and buses are used, and the values they store/carry, when the line LDA redLight is executed (after it has been fetched and decoded). You should assume the address redLight refers to memory location 11.
[6]
Write code in a high‑level language or pseudocode that has the same functionality as the code in Fig. 1.
[3]
* Discuss the differences between assembly code and high‑level languages. You should refer to:
• the advantages and disadvantages of writing programs in assembly code rather than a high-level language
• when each approach might be used
• why the coffee machine was programmed in assembly code.
[9]