Past-paper question · 2021 May-June · Paper 12 · Q3(c)(i)

Question 3(c)(i) 2021 · May-June · Paper 12 · 1 mark

Original past-paper question for 3(C)(I)
Original past-paper question for 3(C)(I)
Original past-paper question for 3(C)(I)
Original past-paper question for 3(C)(I)
Reveal official mark-scheme answer

Official answer for Question 3

Part (c)

(i)

Question 1

✓
0011 1011

Mark scheme 9608_s21_ms_12.pdf →

Show text version of question

Question 3

Part (c)

(i)

Question 3

The 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 Explanation Op code Operand Direct addressing. Load the contents of the location at the LDD <address> given address to ACC. Indirect addressing. The address to be used is at the given LDI <address> address. Load the contents of this second address to ACC. STO <address> Store the contents of ACC at the given address.

ADD <address> Add the contents of the given address to ACC.

INC <register> Add 1 to the contents of the register (ACC or IX).

JMP <address> Jump to the given address. Compare the contents of ACC with the contents of CMP <address> <address>. Following a compare instruction, jump to <address> if the JPE <address> compare was True. END Return control to the operating system.

The current contents of the main memory are:

Address Instruction 50 LDI 103 51 CMP 101 52 JPE 59 53 ADD 102 54 STO 102 55 LDD 100 56 INC ACC 57 STO 100 58 JMP 51 59 ADD 102 60 STO 102 61 END

…

100 1 101 3 102 0 103 100

Question 5

Each instruction in the assembly language program is encoded in 16 bits (8-bit op code followed by an 8-bit operand).

(i)

The instruction JPE 59 has the operand 59.

Convert the operand 59 into 8-bit binary.

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

Keep practising this topic