Computer Science For First Examination In 2021 9618 · 4

4.2 Assembly language

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

Reset
2025 October-November · Paper 12 · Q3(b)

Assembly language · 3 marks · official answer ready

(b) The following table shows part of the instruction set for a processor. The processor has two registers: the ACC and an IX. Instruction Explanation Opcode Operand LDM #n Immedi…

2025 October-November · Paper 13 · Q6(a)

Assembly language · 4 marks · official answer ready

(a) Complete the table by writing the contents of the ACC after the execution of each instruction. Current contents of the Contents of the ACC after the Instruction ACC execution …

2025 October-November · Paper 13 · Q6(c)

Assembly language · 3 marks · official answer ready

(c) Assembly language instructions are grouped. Complete each statement by writing the name of the appropriate instruction group. Loading data into the accumulator is an example o…

2025 October-November · Paper 31 · Q11(a)

Assembly language · 6 marks · official answer ready

(a) Write assembly language code, using only the given instruction set to: • store the denary value 100 as a named constant • subtract the constant from the value contained in add…

2025 October-November · Paper 32 · Q11

Assembly language · 7 marks · official answer ready

11 The table shows assembly language instructions for a processor that has one register, the Accumulator (ACC). Instruction Label Opcode Operand Explanation LDM #n Load the number…

2025 October-November · Paper 33 · Q13

Assembly language · 7 marks · official answer ready

13 The table shows assembly language instructions for a processor that has one register, the Accumulator (ACC). Instruction Label Opcode Operand Explanation LDM #n Load the number…

2024 October-November · Paper 12 · Q8(a)

Assembly language · 5 marks · official answer ready

(a) The current contents of memory are shown: Address Data 19 25 20 23 21 2 22 4 23 15 24 50 25 22 The current contents of the ACC and IX are shown: ACC 50 IX 20 Complete the tabl…

2024 October-November · Paper 13 · Q7(a)

Assembly language · 3 marks · official answer ready

(a) The current contents of memory are shown: Address Data 50 54 51 55 52 50 53 52 54 100 55 25 56 50 The current contents of the ACC and IX are shown: ACC 50 IX 45 Complete the t…

2024 May-June · Paper 11 · Q4(a)

Assembly language · 4 marks · official answer ready

(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: ACC 12 IX 1 Complete the table by…

2024 May-June · Paper 12 · Q5(a)

Assembly language · 4 marks · official answer ready

(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 …

2024 May-June · Paper 13 · Q3(a)

Assembly language · 4 marks · official answer ready

(a) The current contents of memory are shown: Address Data 48 51 49 6 50 48 51 50 52 49 53 50 54 6 The current contents of the ACC and IX are shown: ACC 2 IX 50 Complete the table…

2023 October-November · Paper 11 · Q8(b)(i)

Assembly language · 3 marks · official answer ready

(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 suitabl…

2023 October-November · Paper 11 · Q8(b)(ii)

Assembly language · 2 marks · official answer ready

(ii) The instruction LDR #2 uses immediate addressing. Give one similarity and one difference between direct addressing and indexed addressing. Similarity ........................…

2023 October-November · Paper 11 · Q8(b)(iii)

Assembly language · 1 mark · official answer ready

(iii) Identify one other mode of addressing. ......................................................................................................................................…

2023 October-November · Paper 12 · Q9(a)

Assembly language · 4 marks · official answer ready

(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 ..........…

2023 May-June · Paper 12 · Q3(a)

Assembly language · 3 marks · official answer ready

(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 generat…

2023 May-June · Paper 12 · Q3(b)

Assembly language · 3 marks · official answer ready

(b) Assembly language statements can use different modes of addressing. Complete the following description of addressing modes. ............................................ addres…

2022 October-November · Paper 12 · Q7(a)

Assembly language · 5 marks · official answer ready

(a) Trace the program currently in memory using the trace table, stopping when line 90 is executed for a second time. Address Instruction Instruction Memory address ACC IX address…

2022 October-November · Paper 12 · Q7(b)(i)

Assembly language · 1 mark · official answer ready

(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 .............................…

2022 October-November · Paper 12 · Q7(b)(ii)

Assembly language · 1 mark · official answer ready

(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 ...................................…