Question 7

OCR Computer Science November 2020 Paper 1A level11 marks

On the specification

(a)
1.2 Software and software development
(b)
1.2 Software and software development
Question text

7 The table below shows the Little Man Computer instruction set. Mnemonic Instruction ADD Add SUB Subtract STA LDA Load Branch always BRZ BRP INP Input OUT Output End program (a) Complete the table above to show the missing mnemonics and instructions. [5] (b) Write a program using the Little Man Computer instruction set that will allow a user to input two numbers and then output the larger of the two numbers. The program should loop continuously. [6]