Question 10
AQA Computer Science June 2025 Paper 2 (7516/2)AS5 marks
On the specification
- 10.1
- 3.7 Fundamentals of computer organisation and architecture
- 10.2
- 3.7 Fundamentals of computer organisation and architecture
Question text
10 1 box . An assembly language program contains an instruction that loads the integer value 13 into register R1. Complete the missing part of the instruction. [1 mark] MOV R1, 10.2 Triangular numbers are numbers that count the number of objects that would appear when arranged in an equilateral triangle. The sequence of triangular numbers starts with 1 and proceeds in order. The first five triangular numbers are 1, 3, 6, 10, and 15. The diagram in Figure 4 shows the first five triangular numbers. Figure 4 Complete the assembly language program below to calculate the nth triangular number. The value of n has already been stored in register R0. The program should store the nth triangular number in register R1. Write one instruction per line. You may not need to use all lines for your solution. [4 marks]