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

Question 4(d)(ii) 2017 · October-November · Paper 13 · 3 marks

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

Official answer for Question 4

Part (d)

(ii)

Question 3

✓
(1)
✓
(1)
✓
B – E6 68
✓
(1)
✓
9608/13
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2017
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w17_ms_13.pdf →

Show text version of question

Question 4

Part (d)

(ii)

The assembler software must then complete the second pass building up the executable file.

(ii)

Use the following instruction set to write the numbers for A and B.

A
(binary) ........................................................................................................................
B
(hexadecimal) .............................................................................................................
[3]

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 11

Topic relevance

Why this question appears here

72% assigned-topic match · Information representation › Data representation

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