May/June 2026 Paper 11

2026 · 7 questions · 29 parts · 75 marks

0/75 marks
0Correct0Partial0Wrong29Unattempted
Filters0 active
3(a)Assembly Language Addressing ModesHard3 marks
The following table shows part of the instruction set for a processor. The processor has two registers: the Accumulator (ACC) and an Index Register (IX).
Instruction set
opcodeoperandexplanation
LDM#nImmediate addressing. Load the number n to ACC
LDD
Direct addressing. Load the contents of the location at the given address to ACC
INCAdd 1 to the contents of the register (ACC or IX)
STO
Store the contents of ACC at the given address
ADD#n / Bn / &nAdd the number n to the ACC
ADD
Add the contents of the given address to the ACC
DECSubtract 1 from the contents of the register (ACC or IX)
ENDReturn control to the operating system
can be an absolute or symbolic address. # denotes a denary number, e.g. #123. B denotes a binary number, e.g. B01001010. & denotes a hexadecimal number, e.g. &4A.
The current contents of memory are:
Memory contents
addressdata
100200
101205
102100
10350
…
200101
201100
20220
20313
204220
20530
Complete the table to identify the data that will be stored in the accumulator after each set of instructions has been executed.
accumulator current dataset of instructionsnew accumulator data
B11001010ADD B00000010 INC ACC
#100LDM #200 ADD 200
#103LDD 103 DEC ACC DEC ACC
3(b)(i)Bit ManipulationMedium2 marks
The instruction set also contains the following instructions:
Bit manipulation instructions
opcodeoperandexplanation
AND#n / Bn / &nBitwise AND operation of the contents of ACC with the operand
AND
Bitwise AND operation of the contents of ACC with the contents of
XOR#n / Bn / &nBitwise XOR operation of the contents of ACC with the operand
XOR
Bitwise XOR operation of the contents of ACC with the contents of
OR#n / Bn / &nBitwise OR operation of the contents of ACC with the operand
OR
Bitwise OR operation of the contents of ACC with the contents of
LSL#nBits in ACC are shifted logically n places to the left. Zeros are introduced on the right hand end
LSR#nBits in ACC are shifted logically n places to the right. Zeros are introduced on the left hand end
CSL#nBits in ACC are shifted n places to the left using a cyclic shift
CSR#nBits in ACC are shifted n places to the right using a cyclic shift
ASL#nBits in ACC are shifted n places to the left using an arithmetic shift
ASR#nBits in ACC are shifted n places to the right using an arithmetic shift
can be an absolute or symbolic address. # denotes a denary number, e.g. #123. B denotes a binary number, e.g. B01001010. & denotes a hexadecimal number, e.g. &4A.
Write the bit manipulation instruction that will set the ACC to &0.

Answer

0 words
3(b)(ii)Bit ManipulationEasy1 mark
The ACC currently contains the following binary value: 0 0 1 1 0 1 0 1
Write the result after the instruction LSR #3 is run.

Answer

3(c)Assembly Language Addressing ModesMedium3 marks
Immediate, relative and direct are three modes of addressing used in assembly language programming.
Identify and describe one additional mode of addressing used in assembly language programming. Include an example of an instruction that uses your selected mode of addressing in your answer.
Mode of addressing
Description with example
0 words