Computer Science (AS & A Level) · Oct / Nov 2022 · Paper 12 · Question 7
9618
As printed in the paper
The question as text
The following table shows part of the instruction set for a processor. The processor has one general purpose register, the Accumulator (ACC), and an Index Register (IX). Instruction Explanation pcode Operand LDM #n Immediate addressing. Load the number n to ACC LDD <address> Direct addressing. Load the contents of the location at the given address to ACC LDX <address> Indexed addressing. Form the address from <address> + the contents of th index register. Copy the contents of this calculated address to ACC LDR #n Immediate addressing. Load the number n to IX STO <address> Store the contents of ACC at the given address ADD <address> Add the contents of the given address to the ACC ADD #n Add the denary number n to the ACC INC <register> Add 1 to the contents of the register (ACC or IX) JMP <address> Jump to the given address CMP <address> Compare the contents of ACC with the contents of <address> CMI <address> Indirect addressing. The address to be used is at the given address. Compar the contents of ACC with the contents of this second address JPE <address> Following a compare instruction, jump to <address> if the compare was True JPN <address> Following a compare instruction, jump to <address> if the compare was False END Return control to the operating system address> can be an absolute or symbolic address denotes a denary number, e.g. #123 denotes a binary number, e.g. B01001101
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
7(a)[5]
7(b)(i)[1]
7(b)(ii)[1]
7(b)(iii)[1]
7(b)(iv)[1]
7(c)[3]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

