Past-paper question · 2016 October-November · Paper 13 · Q8(b)(ii)

Question 8(b)(ii) 2016 · October-November · Paper 13 · 1 mark

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

Official answer for Question 8

Part (b)

(ii)

(ii)

107

[1]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International AS/A Level – October/November 2016
✓
9608

Question 13

Mark scheme 9608_w16_ms_13.pdf →

Show text version of question

Question 8

Part (b)

(ii)

Question 8

The table shows assembly language instructions for a processor which has one general purpose

register, the Accumulator (ACC) and an Index Register (IX).

Instruction Explanation Op code Operand LDD <address> Direct addressing. Load the contents of the given address to ACC. Indexed addressing. Form the address from <address> + the LDX <address> contents of the index register. Copy the contents of this calculated address to ACC. STO <address> Store contents of ACC at the given address. ADD <address> Add the contents of the given address to ACC. CMP <address> Compare contents of ACC with contents of <address> Following a compare instruction, jump to <address> if the compare JPE <address> was True. Following a compare instruction, jump to <address> if the compare JPN <address> was False. JMP <address> Jump to the given address. Output to the screen the character whose ASCII value is stored in OUT ACC. END Return control to the operating system.

The diagram shows the contents of the main memory:

Main memory 800 0110 0100 801 0111 1100 802 1001 0111 803 0111 0011 804 1001 0000 805 0011 1111 806 0000 1110 807 1110 1000 808 1000 1110 809 1100 0010 : :

(ii)

There is a redundant instruction in the code in part (b)(i).

State the address of this instruction.

.......................................................................................................................................[1]

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_w16_qp_13.pdf

Keep practising this topic