Question 12
AQA Computer Science June 2023 Paper 1 (7516/1)AS5 marks
On the specification
- 12.1
- 3.1 Fundamentals of programming3.7 Fundamentals of computer organisation and architecture
- 12.2
- 3.3 Systematic approach to problem solving
Question text
12 This question extends the functionality of the Skeleton Program. The functionality of the SKP opcode is to be changed so that it increments the value stored in the accumulator by 1 For example, if the accumulator contained 4, then executing the instruction SKP would change the value in the accumulator to 5 What you need to do: Task 1 Amend the subroutine ExecuteSKP so that it adds 1 to the accumulator and then updates the status register if required. The Registers data structure should be passed as a parameter. Task 2 Amend the call to ExecuteSKP in the Execute subroutine as required. Task 3 Test that the changes you have made work by conducting the following test: • run your amended Skeleton Program • enter L • load prog2 • enter A • enter R Evidence that you need to provide Include the following evidence in your Electronic Answer Document. 12.1 Your PROGRAM SOURCE CODE for the entire subroutine ExecuteSKP and the entire subroutine Execute. [4 marks] 12.2 SCREEN CAPTURE(S) showing the requested test described in Task 3. The SCREEN CAPTURE(S) only need to show all of Frame 0 and all of the final frame. [1 mark]