4.2 Assembly language
131 questions in this subtopic. Open a question to solve it and check the official answer.
Assembly language · 1 mark
(i) The instruction CMP 201 has the operand 201. Convert the operand 201 into 8-bit binary. [1]
Assembly language · 1 mark · official answer ready
(ii) State the maximum number of op codes that can be represented using eight bits. ...............................................................................................…
Assembly language · 1 mark
(i) The instruction JPE 59 has the operand 59. Convert the operand 59 into 8-bit binary. [1]
Assembly language · 1 mark
(ii) Convert the denary value 59 into hexadecimal. ................................................................................................................................…
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 .............................…
Assembly language · 2 marks · official answer ready
(b) Identify two modes of addressing that are not used in the assembly language program given. 1 ..................................................................................…
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]
Assembly language · 1 mark
(ii) Convert the denary value 234 into hexadecimal. ...............................................................................................................................…
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. .................…
Assembly language · 3 marks · official answer ready
(ii) Write the assembly language instructions to check for an error in the container 4 system. ....................................................................................…
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. ................…
Assembly language · 3 marks · official answer ready
(ii) Write the assembly language instructions to check for an error in the greenhouse 2 system. ...................................................................................…
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. .................…
Assembly language · 3 marks · official answer ready
(ii) Write the assembly language instructions to check for an error in the container 4 system. ....................................................................................…
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…
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 …
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…
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…
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 .......…
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…
