Computer Science 9608 · 4

4.2 Assembly language

131 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2021 May-June · Paper 11 · Q3(c)(i)

Assembly language · 1 mark

(i) The instruction CMP 201 has the operand 201. Convert the operand 201 into 8-bit binary. [1]

2021 May-June · Paper 11 · Q3(c)(ii)

Assembly language · 1 mark · official answer ready

(ii) State the maximum number of op codes that can be represented using eight bits. ...............................................................................................…

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

Assembly language · 1 mark

(i) The instruction JPE 59 has the operand 59. Convert the operand 59 into 8-bit binary. [1]

2021 May-June · Paper 12 · Q3(c)(ii)

Assembly language · 1 mark

(ii) Convert the denary value 59 into hexadecimal. ................................................................................................................................…

2021 May-June · Paper 12 · Q3(d)

Assembly language · 2 marks · official answer ready

(d) The assembly language program uses direct and indirect addressing. Identify two other modes of addressing used in an assembly language program. 1 .............................…

2021 May-June · Paper 13 · Q3(b)

Assembly language · 2 marks · official answer ready

(b) Identify two modes of addressing that are not used in the assembly language program given. 1 ..................................................................................…

2021 May-June · Paper 13 · Q3(c)(i)

Assembly language · 1 mark · official answer ready

(i) The instruction LDX 234 has the operand 234. Convert the operand 234 into 8-bit binary. [1]

2021 May-June · Paper 13 · Q3(c)(ii)

Assembly language · 1 mark

(ii) Convert the denary value 234 into hexadecimal. ...............................................................................................................................…

2021 May-June · Paper 31 · Q7(d)(i)

Assembly language · 4 marks · official answer ready

(i) These assembly language instructions check for an error in the container 1 system. LDD 300 AND &88 CMP &88 JPE ERROR Explain the purpose of each instruction. .................…

2021 May-June · Paper 31 · Q7(d)(ii)

Assembly language · 3 marks · official answer ready

(ii) Write the assembly language instructions to check for an error in the container 4 system. ....................................................................................…

2021 May-June · Paper 32 · Q8(d)(i)

Assembly language · 4 marks · official answer ready

(i) These assembly language instructions check for an error in the greenhouse 1 system. LDD 700 AND &88 CMP &88 JPE ERROR Explain the purpose of each instruction. ................…

2021 May-June · Paper 32 · Q8(d)(ii)

Assembly language · 3 marks · official answer ready

(ii) Write the assembly language instructions to check for an error in the greenhouse 2 system. ...................................................................................…

2021 May-June · Paper 33 · Q7(d)(i)

Assembly language · 4 marks · official answer ready

(i) These assembly language instructions check for an error in the container 1 system. LDD 300 AND &88 CMP &88 JPE ERROR Explain the purpose of each instruction. .................…

2021 May-June · Paper 33 · Q7(d)(ii)

Assembly language · 3 marks · official answer ready

(ii) Write the assembly language instructions to check for an error in the container 4 system. ....................................................................................…

2021 May-June · Paper 41 · Q6

Assembly language · 6 marks · official answer ready

6 The table shows assembly language instructions for a processor that has one general purpose register, the Accumulator (ACC), and an Index Register (IX). Instruction Label Op Ope…

2021 May-June · Paper 42 · Q8

Assembly language · 5 marks · official answer ready

8 The table shows assembly language instructions for a processor that has one general purpose register, the Accumulator (ACC), and an Index Register (IX). Instruction Explanation …

2021 May-June · Paper 43 · Q6

Assembly language · 6 marks · official answer ready

6 The table shows assembly language instructions for a processor that has one general purpose register, the Accumulator (ACC), and an Index Register (IX). Instruction Label Op Ope…

2019 May-June · Paper 11 · Q5(a)

Assembly language · 2 marks · official answer ready

(a) The table contains some of the tasks performed by a two-pass assembler. Tick (✓) one box in each row to indicate whether the task is performed at the first or second pass. The…

2019 May-June · Paper 11 · Q5(b)

Assembly language · 2 marks · official answer ready

(b) The processor’s instruction set can be grouped according to their function. For example, one group is modes of addressing. Identify two other groups of instructions. 1 .......…

2019 May-June · Paper 11 · Q5(c)

Assembly language · 8 marks · official answer ready

(c) The table shows assembly language instructions for a processor which has one general purpose register, the Accumulator (ACC), and an Index Register (IX). Instruction Explanati…