4.2 Assembly language
32 questions in this subtopic. Open a question to solve it and check the official answer.
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…
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 …
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…
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…
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…
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…
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…
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…
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…
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 …
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…
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…
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 ........................…
Assembly language · 1 mark · official answer ready
(iii) Identify one other mode of addressing. ......................................................................................................................................…
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 ..........…
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…
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…
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…
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 .............................…
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 ...................................…
