Past-paper question · 2017 October-November · Paper 12 · Q4(d)

Question 4(d) 2017 · October-November · Paper 12 · 5 marks

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

Official answer for Question 4

Part (d)

✓
Mark as shown

Question 5

✓
ACC
✓
Offset
✓
OUTPUT

Question 10

Question 50

Question 2

Question 10

Question 11

Question 11

✓
1 Mark for these two values, as first instructions

Question 65

✓
1 Mark for this value, in any row
✓
A
✓
1 Mark for this value, in any row

Question 11

✓
1 Mark for this value, after 65, nothing in between

Question 12

Question 12

✓
1 Mark for the rest

Question 89

✓
Y

Question 12

Question 13

Question 13

Question 32

✓
9608/12
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2017
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w17_ms_12.pdf →

Show text version of question

Question 4

Part (d)

Question 4

The following diagram shows the components and buses found inside a typical personal computer

(PC).

A

B

F

C
D

E

Control unit

Main memory

Part (d)

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 Explanation Operand (mnemonic) Direct addressing. Load the contents of the given address LDD <address> to ACC. Relative addressing. Move to the address n locations from LDV #n the address of the current instruction. Load the contents of this address to ACC. STO <address> Store the contents of ACC at the given address. INC Increment the contents of ACC. Output the character corresponding to the ASCII character OUTCH code in ACC. Following a compare instruction, jump to <address> if the JPE <address> compare was True. JMP <address> Jump to the given address. CMP #n Compare the contents of ACC with number n.

Question 7

Complete the trace table for the following assembly language program.

Label Instruction StartProg: LDV #Offset CMP Value ASCII code table (selected codes only) JPE EndProg <Space> 2 A B Y OUTCH 32 50 65 66 89 LDD Offset INC STO Offset JMP StartProg EndProg: END Offset: 10

Question 50

Question 65

Question 89

Question 32

Value: 32

Trace table:

ACC Offset OUTPUT

Question 10

50 2

Question 10

[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_12.pdf

Keep practising this topic