Past-paper question · 2023 October-November · Paper 12 · Q9(b)

Question 9(b) 2023 · October-November · Paper 12 · 0 marks

Original past-paper question for 9(B)
Original past-paper question for 9(B)
Original past-paper question for 9(B)
Reveal official mark-scheme answer Official mark-scheme answer for 9(B)

Official answer for Question 9

Part (b)

Question 1

mark for each set of shaded rows

Question 4

✓
Memory address
✓
Output
✓
Instruction
✓
ACC
✓
IX
✓
address
✓
100
✓
101
✓
110
✓
111
✓
0
✓
0

Question 51

Question 65

Question 10

✓
0

Question 11

Question 49

Question 12

Question 49

Question 13

Question 51

Question 14

Question 15

Question 16

Question 49

Question 17

Question 65

Question 18

Question 1

Question 19

Question 65

Question 20

Question 13

Question 65

Question 14

Question 15

Question 21

✓
A

Question 22

Mark scheme 9618_w23_ms_12.pdf →

Show text version of question

Question 9

Part (b)

Question 9

The following table shows part of the instruction set for a processor. The processor has two

registers, the Accumulator (ACC) and the Index Register (IX).

Instruction Explanation Opcode Operand Direct addressing. Load the contents of the location at the given LDD <address> address to ACC Indexed addressing. Form the address from <address> + LDX <address> the contents of the 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 #n Add the denary number n to the ACC JMP <address> Jump to the given address INC <register> Add 1 to the contents of the register (ACC or IX) CMP <address> Compare the contents of ACC with the contents of <address> Indirect addressing. The address to be used is at the given CMI <address> address. Compare the contents of ACC with the contents of this second address Following a compare instruction, jump to <address> if the JPE <address> compare was True IN Key in a character and store its ASCII value in ACC Output to the screen the character whose ASCII value is stored OUT in ACC END Return control to the operating system <address> can be an absolute or a symbolic address # denotes a denary number, e.g. #123

Part (b)

The current contents of main memory and selected values from the ASCII character set are

given on page 15.

Trace the program currently in memory using the trace table when the input is ‘1’.

Question 15

Address Instruction Instruction Memory address Output ACC IX

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Programming basics

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9618_w23_qp_12.pdf

Keep practising this topic