Processor fundamentals and assembly language – A Level Computer Science (9618)

40 questions · page 2 of 3

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
16
9618/11/M/J/24 · Question 4May/June 2024Paper 117 marks
Loading question…
Question text

4
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
Explanation
Opcode
Operand
LDM
#n
Immediate addressing. Load the number n to ACC
Direct addressing. Load the contents of the location at the given
LDD
<address>
address to ACC
Indirect addressing. The address to be used is at the given address.
LDI
<address>
Load the contents of this second address to ACC
Indexed addressing. Form the address from <address> + the contents
LDX
<address>
of the Index Register. Copy the contents of this calculated address to
ACC
LDR
#n
Immediate addressing. Load the number n to IX
ADD
#n/Bn/&n
Add the number n to the ACC
ADD
<address>
Add the contents of the given address to the ACC
SUB
#n/Bn/&n
Subtract the number n from the ACC
SUB
<address>
Subtract the contents of the given address from the ACC
INC
<register>
Add 1 to the contents of the register (ACC or IX)
<address> can be an absolute or a symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A
(a) The current contents of memory are shown:
Address
Data
19
24
20
2
21
1
22
3
23
5
24
4
25
22
The current contents of the ACC and IX are shown:
12
ACC
1
IX
Complete the table by writing the content of the ACC after each program has run.
Program number
Code
ACC content
LDD 20
1
ADD #2
LDX 22
2
LDI 25
INC ACC
3
SUB 22
LDD 19
LDM #5
4
LDM #25
[4]
(b) The processor includes these bit manipulation instructions:
Instruction
Explanation
Opcode
Operand
AND
#n/Bn/&n
Bitwise AND operation of the contents of ACC with the operand
Bitwise AND operation of the contents of ACC with the contents of
AND
<address>
<address>
XOR
#n/Bn/&n
Bitwise XOR operation of the contents of ACC with the operand
Bitwise XOR operation of the contents of ACC with the contents of
XOR
<address>
<address>
OR
#n/Bn/&n
Bitwise OR operation of the contents of ACC with the operand
Bitwise OR operation of the contents of ACC with the contents of
OR
<address>
<address>
<address> can be an absolute or a 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 shown:
Address
Data
30
01110101
31
11111111
32
00000000
33
11001100
34
10101010
The current content of the ACC is shown:
1
0
0
1
1
0
1
0
Complete the table by writing the content of the ACC after each program has run.
The binary number 10011010 is reloaded into the ACC before each program is run.
Program number
Code
ACC content
AND 31
1
XOR B01001111
2
OR #30
3
[3]

17
9618/12/M/J/24 · Question 5May/June 2024Paper 127 marks
Loading question…
Question text

5
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
Explanation
Opcode
Operand
LDM #n
Immediate addressing. Load the number n to ACC
Direct addressing. Load the contents of the location at the given
LDD <address>
address to ACC
Indirect addressing. The address to be used is at the given address.
LDI <address>
Load the contents of this second address to ACC
Indexed addressing. Form the address from <address> + the contents
LDX <address>
of the index register. Copy the contents of this calculated address to
ACC
LDR #n
Immediate addressing. Load the number n to IX
ADD #n/Bn/&n
Add the number n to the ACC
ADD <address>
Add the contents of the given address to the ACC
SUB #n/Bn/&n
Subtract the number n from the ACC
SUB <address>
Subtract the contents of the given address from the ACC
INC <register>
Add 1 to the contents of the register (ACC or IX)
<address> can be an absolute or a symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A
(a) The current contents of memory are shown:
Address
Data
10 1
11 3
12 5
13 11
14 10
15 16
16 12
The current contents of the ACC and IX are shown:
ACC 10
IX 0
Complete the table by writing the content of the ACC after each program has run.
Program number
Code
ACC content
LDI 15
1
SUB #1
LDD 14
2
ADD 11
LDM #11
ADD #3
3
SUB 16
LDR #2
LDX 14
4
ADD #2
[4]
(b) The processor includes these bit manipulation instructions:
Instruction
Explanation
Opcode
Operand
AND #n/Bn/&n
Bitwise AND operation of the contents of ACC with the operand
Bitwise AND operation of the contents of ACC with the contents of
AND <address>
<address>
XOR #n/Bn/&n
Bitwise XOR operation of the contents of ACC with the operand
Bitwise XOR operation of the contents of ACC with the contents of
XOR <address>
<address>
OR #n/Bn/&n
Bitwise OR operation of the contents of ACC with the operand
Bitwise OR operation of the contents of ACC with the contents of
OR <address>
<address>
<address> can be an absolute or a 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 shown:
Address
Data
25 11000110
26 11100001
27 10000001
28 11001101
29 00001111
The current content of the ACC is shown:
0
1
0
0
0
1
1
0
Complete the table by writing the content of the ACC after each program has run.
The binary number 01000110 is reloaded into the ACC before each program is run.
Program number
Code
ACC content
XOR 29
1
AND #29
2
OR B11111111
3
[3]

18
9618/13/M/J/24 · Question 3May/June 2024Paper 137 marks
Loading question…
Question text

3
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
Explanation
Opcode
Operand
Immediate addressing. Load the number n to ACC
LDM
#n
Direct addressing. Load the contents of the location at the given
LDD
<address>
address to ACC
Indirect addressing. The address to be used is at the given address.
LDI
<address>
Load the contents of this second address to ACC
Indexed addressing. Form the address from <address> + the contents
LDX
<address>
of the index register. Copy the contents of this calculated address to
ACC
Immediate addressing. Load the number n to IX
LDR
#n
Add the number n to the ACC
ADD
#n/Bn/&n
Add the contents of the given address to the ACC
ADD
<address>
Subtract 1 from the contents of the register (ACC or IX)
DEC
<register>
Subtract the number n from the ACC
SUB
#n/Bn/&n
Subtract the contents of the given address from the ACC
SUB
<address>
Add 1 to the contents of the register (ACC or IX)
INC
<register>
<address> can be an absolute or a symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A
,
,
(a) The current contents of memory are shown:
Address
Data
51
48
6
49
48
50
50
51
49
52
50
53
6
54
The current contents of the ACC and IX are shown:
2
ACC
50
IX
Complete the table by writing the content of the ACC after each program has run.
Program number
Code
ACC content
LDM #50
INC ACC
1
SUB #1
LDI 51
2
ADD 52
LDR #2
LDX 50
3
DEC ACC
LDD 52
SUB 54
4
INC ACC
[4]
,
,
(b) The processor includes these bit manipulation instructions:
Instruction
Explanation
Opcode
Operand
AND
#n/Bn/&n
Bitwise AND operation of the contents of ACC with the operand
Bitwise AND operation of the contents of ACC with the contents of
AND
<address>
<address>
XOR
#n/Bn/&n
Bitwise XOR operation of the contents of ACC with the operand
Bitwise XOR operation of the contents of ACC with the contents of
XOR
<address>
<address>
OR
#n/Bn/&n
Bitwise OR operation of the contents of ACC with the operand
Bitwise OR operation of the contents of ACC with the contents of
OR
<address>
<address>
Bits in ACC are shifted logically n places to the left. Zeros are
LSL
#n
introduced on the right-hand end
Bits in ACC are shifted logically n places to the right. Zeros are
LSR
#n
introduced on the left-hand end
<address> can be an absolute or a 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 shown:
Address
Data
00001101
100
10111110
101
11110011
102
00110111
103
00000000
104
The current content of the ACC is shown:
1
1
1
1
1
1
1
1
,
,
Complete the table by writing the content of the ACC after each instruction has run.
The binary number 11111111 is reloaded into the ACC before each instruction is run.
Instruction number
Instruction
ACC content
LSL #2
1
XOR 100
2
AND 103
3
[3]

Advertisement
19
9618/11/O/N/23 · Question 5Oct/Nov 2023Paper 1112 marks
Loading question…
Question text

5
The Central Processing Unit (CPU) of the basic Von Neumann model for a computer system
contains several special purpose registers.
(a) The Memory Data Register (MDR), Index Register (IX) and the Accumulator (ACC) are
examples of special purpose registers.
Identify two other special purpose registers and state their role in the CPU.
Special purpose register 1 …
Role …
…
…
Special purpose register 2 …
Role …
…
…
[4]
(b) Describe what is meant by the Immediate Access Store (IAS) in a computer system.
…
…
…
… [2]
(c) A computer has a single 2.1 GHz CPU.
(i)
Describe how increasing the clock speed to 4 GHz can increase the performance of the
computer.
…
…
… [1]
(ii)
A second computer has a CPU with two 2.1 GHz cores.
Explain why the second computer does not always run twice as fast as the computer
with one 2.1 GHz CPU.
…
…
…
…
…
…
…
…

20
9618/11/O/N/23 · Question 8Oct/Nov 2023Paper 1110 marks
Loading question…
Question text

8
(a) Identify the purpose of the first pass of a two-pass assembler.
…
… [1]
(b) The following table shows part of the instruction set for a processor. The processor has two
registers, the Accumulator (ACC) and the Index Register (IX).
Instruction
Explanation
Opcode
Operand
LDR
#n
Immediate addressing. Load the number n to IX
STO
<address>
Store contents of ACC at the given address
ADD
<address>
Add the contents of the given address to the ACC
INC
<register>
Add 1 to the contents of the register (ACC or IX)
CMP
#n
Compare the contents of ACC with number n
JPE
<address>
Following a compare instruction, jump to <address> if the compare was True
OUT
Output to the screen the character whose ASCII value is stored in ACC
<address> can be an absolute or symbolic address
# denotes a denary number, e.g. #123
(i)
Give one example of an instruction that belongs to each of the following instruction
groups.
Only use the instructions given in the table. Each instruction must have a suitable
operand.
Data movement …
Arithmetic operation …
Conditional instruction …
[3]
(ii)
The instruction LDR #2 uses immediate addressing.
Give one similarity and one difference between direct addressing and indexed addressing.
Similarity …
…
…
Difference …
…
…
[2]
(iii)
Identify one other mode of addressing.
…
… [1]
(c) The following table shows another part of the instruction set for the same processor.
Instruction
Explanation
Opcode
Operand
AND
Bn
Bitwise AND operation of the contents of ACC with the operand
XOR
Bn
Bitwise XOR operation of the contents of ACC with the operand
LSR
#n
Bits in ACC are shifted logically n places to the right. Zeros are introduced on
the left hand end
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001101
(i)
The current contents of the ACC are:
1
0
0
1
1
1
1
0
Show the contents of the ACC after the execution of the following instruction.
AND B10100101
…
…
[1]
(ii)
The current contents of the ACC are:
0
0
0
1
0
1
1
1
Show the contents of the ACC after the execution of t

21
9618/12/O/N/23 · Question 9Oct/Nov 2023Paper 128 marks
Loading question…
Question text

9
The following table shows part of the instruction set for a processor. The processor has two
registers, the Accumulator (ACC) and the Index Register (IX).
Instruction
Explanation
Opcode
Operand
Direct addressing. Load the contents of the location at the given
LDD
<address>
address to ACC
Indexed addressing. Form the address from <address> +
the contents of the index register. Copy the contents of this
LDX
<address>
calculated address to ACC
LDR
#n
Immediate addressing. Load the number n to IX
STO
<address>
Store the contents of ACC at the given address
ADD
#n
Add the denary number n to the ACC
JMP
<address>
Jump to the given address
INC
<register>
Add 1 to the contents of the register (ACC or IX)
CMP
<address>
Compare the contents of ACC with the contents of <address>
Indirect addressing. The address to be used is at the given
CMI
<address>
address. Compare the contents of ACC with the contents of this
second address
Following a compare instruction, jump to <address> if the
JPE
<address>
compare was True
IN
Key in a character and store its ASCII value in ACC
Output to the screen the character whose ASCII value is stored
OUT
in ACC
END
Return control to the operating system
<address> can be an absolute or a symbolic address
# denotes a denary number, e.g. #123
(a) The instructions in the processor’s instruction set can be grouped according to their function.
Identify the instruction group for each of the following opcodes.
IN …
ADD …
JPE …
CMI …
[4]
(b) The current contents of main memory and selected values from the ASCII character set are
given on page 15.
Trace the program currently in memory using the trace table when the input is ‘1’.
Address
Instruction
Memory address
Output
Instruction
ACC
IX
address
LDR #0
10
100
101
110
111
0
0
51
65
IN
11
STO 101
12
LDX 110
13
CMP 100
14
JPE 21
15
LDD 101
16
ADD #16
17
INC IX
18
STO 100
19
JMP 13
20
OUT
21
END
22
...
0
100
0
101
...
51
110
65
111
ASCII
Character
value
49
1
50
2
51
3
[4]
52
4
...
65
A
66
B
67
C
68
D
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge

22
9618/13/O/N/23 · Question 9Oct/Nov 2023Paper 1313 marks
Loading question…
Question text

9
A computer system is designed using the basic Von Neumann model.
Registers and buses are components in the Von Neumann model.
(a) (i)
Identify three other components in the Von Neumann model of a computer system.
Do not include registers or buses in your answers.
1 …
2 …
3 …
[3]
(ii)
Identify two differences between special purpose registers and general purpose
registers.
1 …
…
2 …
…
[2]
(b) The following incomplete table contains steps of the Fetch‑Execute (F‑E) cycle and their
descriptions.
Complete the table by writing the missing steps using register transfer notation and the
missing descriptions.
Step
Description
…
The address in PC is incremented.
…
MDR
[[MAR]]
…
…
…
[PC]
MAR
…
…
…
The contents of MDR are copied into CIR.
[4]
(c) Interrupts can be caused by software programs or hardware devices.
State one cause of a software interrupt.
…
… [1]
(d) The following statements describe the stages that the CPU performs when an interrupt is
detected.
There are three missing statements.
Write the letter of the missing statements from the table in the correct place to complete the
description.
1 At the end of each Fetch‑Execute (F‑E) cycle, the processor checks if an interrupt flag is
set.
2
…
3 If the interrupt priority is high enough, the processor saves the current contents of the
registers.
4
…
5
When servicing of the interrupt is complete, the processor restores the registers.
6
…
Letter
Stage
The address of the Interrupt Service (ISR) handling routine is loaded into the
A
Program Counter (PC).
B
Lower priority interrupts are re‑enabled.
C
The device causing the interrupt transfers data to the CPU.
The processor identifies the source of the interrupt and checks the priority of
D
the interrupt.
E
The ISR is incremented.
[3]
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be please

23
9618/11/M/J/23 · Question 6May/June 2023Paper 115 marks
Loading question…
Question text

6
An interrupt is generated when a key is pressed on a computer keyboard.
Explain how the computer handles this interrupt.
…
…
…
…
…
…
…
…
…
… [5]
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer‑related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge

Advertisement
24
9618/12/M/J/23 · Question 3May/June 2023Paper 126 marks
Loading question…
Question text

3
A program is written in assembly language.
(a) The program is converted into machine code by a two‑pass assembler.
Draw one or more lines to identify the pass or passes in which each action takes place.
Action
Pass
generates object code
first
reads the source code one line at a time
removes white space
second
adds labels to the symbol table
[3]
(b) Assembly language statements can use different modes of addressing.
Complete the following description of addressing modes.
… addressing is when the operand holds the memory address of
the data.
… addressing is when the operand holds a memory address that
stores the memory address of the data.
… addressing is when the operand is the data.
[3]

25
9618/12/M/J/23 · Question 5May/June 2023Paper 1215 marks
Loading question…
Question text

5
A student has purchased a new laptop.
(a) The laptop is designed using the Von Neumann model for a computer system.
Identify two types of signal that a control bus can transfer.
1 …
2 …
[2]
(b) Describe two ways the hardware of a laptop can be upgraded to improve the performance
and explain how each upgrade improves the performance.
1 …
…
…
…
…
…
2 …
…
…
…
…
…
[4]
(c) Peripherals are connected to the laptop using ports.
(i)
A printer is connected to a Universal Serial Bus (USB) port.
Describe how data is transmitted through a USB port.
…
…
…
… [1]
(ii)
A monitor is connected to the laptop using a different type of port.
Identify one other type of port that can be used to connect the monitor.
… [1]
(d) The laptop has systems software.
(i)
Describe how the Operating System (OS) manages processes in the computer.
…
…
…
…

26
9618/13/M/J/23 · Question 7May/June 2023Paper 139 marks
Loading question…
Question text

7
A computer stores data in binary form.
(a) Draw one line from each description to its matching denary value.
Description
Denary value
−127
127
The smallest integer that can be
represented in 8-bit two’s complement.
−255
−128
The largest integer that can be
represented in 8-bit two’s complement.
−256
256
The largest unsigned integer that can be
represented in 8 bits.
128
255
[3]
(b) The computer has a Control Unit (CU), system clock and control bus.
Explain how the CU, system clock and control bus operate to transfer data between the
components of the computer system.
…
…
…
…
…
…
…
… [4]
(c) Complete the table by writing the register transfer notation for each stage of the
Fetch-Execute (F-E) cycle given in the table.
Stage description
Register transfer notation
The Program Counter (PC) is incremented
…
The data in the address stored in the
Memory Address Register (MAR) is copied
…
to the Memory Data Register (MDR)
[2]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge

27
9618/11/O/N/22 · Question 5Oct/Nov 2022Paper 1111 marks
Loading question…
Question text

5
(a) State what is meant by the stored program concept in the Von Neumann model of a
computer system.
…
… [1]
(b) A Central Processing Unit (CPU) contains several special purpose registers and other
components.
(i)
State the role of the following registers.
Program Counter (PC) …
…
…
Index Register (IX) …
…
…
Status Register (SR) …
…
…
[3]
(ii)
Tick (  ) one box in each row to identify the system bus used by each CPU component.
CPU component
Data bus
Address bus
Control bus
System clock
Memory Address Register (MAR)
[1]
(iii)
Describe the purpose of the Control Unit (CU) in a CPU.
…
…
…
… [2]
(c) Describe the purpose of an interrupt in a computer system.
…
…
…
… [2]
(d) Identify two causes of a software interrupt.
1 …
…
2 …
…
[2]

28
9618/11/O/N/22 · Question 6Oct/Nov 2022Paper 1111 marks
Loading question…
Question text

6
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
Explanation
Opcode
Operand
LDM
#n
Immediate addressing. Load the number n to ACC
LDD
<address>
Direct addressing. Load the contents of the location at the given
address to ACC
LDX
<address>
Indexed addressing. Form the address from <address> + the
contents of the index register. Copy the contents of this calculated
address to ACC
LDR
#n
Immediate addressing. Load the number n to IX
STO
<address>
Store contents of ACC at the given address
ADD
<address>
Add the contents of the given address to the ACC
ADD
#n
Add the denary number n to the ACC
INC
<register>
Add 1 to the contents of the register (ACC or IX)
CMP
#n
Compare the contents of ACC with number n
JPE
<address>
Following a compare instruction, jump to <address> if the
compare was True
JPN
<address>
Following a compare instruction, jump to <address> if the
compare was False
OUT
Output to the screen the character whose ASCII value is stored in
ACC
END
Return control to the operating system
<address> can be an absolute or a symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001101
(a) The current contents of main memory and selected values from the ASCII character set are
given.
(i)
Trace the program currently in memory using the trace table.
Memory address
Instruction
ACC
IX
Output
address
Address
Instruction
100
101
110
111
112
77
LDR
#0
0
0
66
65
35
78
LDX
110
79
CMP
#35
80
JPE
92
81
ADD
100
82
STO
101
83
LDM
#1
84
ADD
100
85
STO
100
86
INC
IX
87
LDX
110
88
CMP
#35
89
JPN
81
90
LDD
100
91
ADD
#48
92
OUT
93
END
…
100
0
101
0
…
110
66
111
65
112
35
ASCII
Character
value
49
1
50
2
51
3
52
4
65
A
66
B
67
C
68
D
[4]
(ii)
The following instructions are repeated for your reference.
Instruction
Explanation
Opcode
Operand
LDD
<address>
Direct addressing. Load the contents of the location at the given
address to ACC
STO
<address>
Store contents of ACC at the given address
State the purpose of this part of an assembly language program.
LDD
100
STO
165
LDD
101
STO
100
LDD
165
STO
101
…
…
[1]
Question 6(b) begins on page 16.
(b) The following table shows another part of the instruction set for the processor.
Instruction
Explanation
Opcode
Operand
AND
#n
Bitwise AND operation of the contents of ACC with the operand
AND
Bn
Bitwise AND operation of the contents of ACC with the binary number n
XOR
#n
Bitwise XOR operation of the contents of ACC with the operand
XOR
Bn
Bitwise XOR operation of the contents of ACC with the binary number n
OR
#n
Bitwise OR operation of the contents of ACC with the operand
OR
Bn
Bitwise OR operation of the contents of ACC with the binary number n
LSR
#n
Bits in ACC are shifted logically n places to the right. Zeros are
introduced on the left-hand end
<address> can be an absolute or a symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001101
(i)
The current contents of the ACC are:
1
0
0
1
0
0
1
1
Show the result after the execution of the following instruction.
XOR B00011111
…
…
[1]
(ii)
The current contents of the ACC are:
1
0
0
1
0
0
1
1
Show the result after the execution of the following instruction.
AND B11110000
…

Advertisement
29
9618/12/O/N/22 · Question 7Oct/Nov 2022Paper 1212 marks
Loading question…
Question text

7
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
Explanation
Opcode
Operand
LDM
#n
Immediate addressing. Load the number n to ACC
LDD
<address>
Direct addressing. Load the contents of the location at the given address to
ACC
LDX
<address>
Indexed addressing. Form the address from <address> + the contents of the
index register. Copy the contents of this calculated address to ACC
LDR
#n
Immediate addressing. Load the number n to IX
STO
<address>
Store the contents of ACC at the given address
ADD
<address>
Add the contents of the given address to the ACC
ADD
#n
Add the denary number n to the ACC
INC
<register>
Add 1 to the contents of the register (ACC or IX)
JMP
<address>
Jump to the given address
CMP
<address>
Compare the contents of ACC with the contents of <address>
CMI
<address>
Indirect addressing. The address to be used is at the given address. Compare
the contents of ACC with the contents of this second address
JPE
<address>
Following a compare instruction, jump to <address> if the compare was True
JPN
<address>
Following a compare instruction, jump to <address> if the compare was False
END
Return control to the operating system
<address> can be an absolute or symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001101
(a) Trace the program currently in memory using the trace table, stopping when line 90 is
executed for a second time.
Memory address
Address
Instruction
Instruction
ACC
IX
address
100
101
102
103
110
111
112
LDR #0
75
0
0
112
4
1
4
0
LDX 110
76
CMI 102
77
JPE 91
78
CMP 103
79
JPN 84
80
ADD 101
81
STO 101
82
JMP 86
83
INC ACC
84
STO 101
85
LDD 100
86
INC ACC
87
STO 100
88
INC IX
89
JMP 76
90
END
91
…
0
100
0
101
112
102
4
103
…
1
110
4
111
0
112
[5]
(b) The following table shows another part of the instruction set for the processor.
Instruction
Explanation
Opcode
Operand
AND
#n
Bitwise AND operation of the contents of ACC with the operand
AND
<address>
Bitwise AND operation of the contents of ACC with the contents of <address>
XOR
#n
Bitwise XOR operation of the contents of ACC with the operand
XOR
Bn
Bitwise XOR operation of the contents of ACC with the binary number n
XOR
<address>
Bitwise XOR operation of the contents of ACC with the contents of <address>
OR
#n
Bitwise OR operation of the contents of ACC with the operand
Bitwise OR operation of the contents of ACC with the contents of <address>
OR
<address>
Bits in ACC are shifted logically n places to the left. Zeros are introduced on
LSL
#n
the right-hand end
Bits in ACC are shifted logically n places to the right. Zeros are introduced on
LSR
#n
the left-hand end
<address> can be an absolute or symbolic address
# denotes a denary number, e.g. #123
B denotes a binary number, e.g. B01001101
The contents of memory addresses 50 and 51 are shown:
Memory address
Data value
50
01001101
51
10001111
(i)
The current contents of the ACC are:
0
1
0
1
0
0
1
1
Show the contents of the ACC after the execution of the following instruction.
XOR B00011111
…
…
[1]
(ii)
The current contents of the ACC are:
0
1
0
1
0
0
1
1
Show the contents of the ACC after the execution of the following instruction.
AND 50
…
…
[1]
(iii)
The current contents of the ACC are:
0
1
0
1
0
0
1
1
Show the contents of the ACC after th

30
9618/13/O/N/22 · Question 4Oct/Nov 2022Paper 137 marks
Loading question…
Question text

4
(a) A Central Processing Unit (CPU) contains several special purpose registers and other
components.
(i)
State the roles of the following registers.
Memory Address Register (MAR) …
…
…
Memory Data Register (MDR) …
…
…
[2]
(ii)
State when interrupts are detected during the Fetch-Execute (F-E) cycle.
…
… [1]
(b) A computer system contains a system clock.
Describe the purpose of the system clock.
…
…
…
… [2]
(c) Upgrading secondary storage to solid state typically improves the performance of computer
systems.
Identify one other upgrade to the hardware and explain why it improves the performance of
a computer system.
Upgrade …
Explanation …
…
…
[2]

Advertisement