Past-paper question · 2017 October-November · Paper 13 · Q4(b)

Question 4(b) 2017 · October-November · Paper 13 · 5 marks

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

Official answer for Question 4

Part (b)

✓
ACC
✓
CountDown

Question 5

✓
OUTPUT

Question 15

Question 67

✓
C

Question 15

Question 14

Question 14

✓
(1)

Question 51

Question 3

✓
(1) + (1)

Question 14

✓
(1)

Question 13

Question 13

Question 32

✓
(1)

Question 88

✓
X

Mark scheme 9608_w17_ms_13.pdf →

Show text version of question

Question 4

Part (b)

Part (b)

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 Op code Op code Explanation Operand (mnemonic) (binary) LDM #n 1100 0001 Immediate addressing. Load number n to ACC. Direct addressing. Load the contents of the given LDD <address> 1100 0010 address to ACC. Relative addressing. Move to the address n locations LDV #n 1100 0011 from the address of the current instruction. Load the contents of this address to ACC. STO <address> 1100 0100 Store the contents of ACC at the given address. DEC 1100 0101 Decrement the contents of ACC. Output the character corresponding to the ASCII OUTCH 1100 0111 character code in ACC. Following a compare instruction, jump to <address> if JNE <address> 1110 0110 the compare was False. JMP <address> 1110 0011 (Unconditionally) jump to the given address. CMP #n 1110 0100 Compare the contents of ACC with number n.

Question 7

Complete the trace table for the following assembly language program. Label Instruction StartProg: LDV #CountDown CMP Num1 ASCII code table (selected codes only) JNE CarryOn <Space> 3 B C X JMP Finish 32 51 66 67 88 CarryOn: OUTCH LDD CountDown DEC STO CountDown JMP StartProg Finish: LDM #88 OUTCH END CountDown: 15

Question 32

Question 51

Question 67

Num1: 32

Trace table:

ACC CountDown OUTPUT

Question 15

67 C

Question 15

[5]

Question 8

Topic relevance

Why this question appears here

99% assigned-topic match · Processor fundamentals › Assembly language

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 9608_w17_qp_13.pdf

Keep practising this topic