4.2 Assembly language
131 questions in this subtopic. Open a question to solve it and check the official answer.
Assembly language · 8 marks · official answer ready
(c) The following table shows assembly language instructions for a processor which has one general purpose register, the Accumulator (ACC), and an Index Register (IX). Instruction…
Assembly language · 2 marks · official answer ready
(a) The op codes LDM and LDD are used to load a register. The op code LDM uses immediate addressing, and the op code LDD uses direct addressing. Describe what happens when the fol…
Assembly language · 3 marks · official answer ready
(b) Assembly language instructions can be grouped by their purpose. The following table shows four assembly language instructions. Tick (✓) one box in each row to indicate the gro…
Assembly language · 2 marks · official answer ready
(i) Give one example of a hardware interrupt and one example of a software interrupt. Hardware ....................................................................................…
Assembly language · 5 marks · official answer ready
(ii) Explain how the processor handles an interrupt. ..............................................................................................................................…
Assembly language · 3 marks · official answer ready
(i) The final stage in the compilation process that follows this code generation stage is code optimisation. Rewrite the equivalent code after optimisation. ......................…
Assembly language · 2 marks
(ii) Explain why code optimisation is necessary. ..................................................................................................................................…
Assembly language · 3 marks · official answer ready
(i) The final stage in the compilation process that follows this code generation stage is code optimisation. Rewrite the equivalent code after optimisation. ......................…
Assembly language · 2 marks
(ii) Explain why code optimisation is necessary. ..................................................................................................................................…
Assembly language · 2 marks · official answer ready
(i) State what is meant by direct addressing and indirect addressing. Direct addressing ...........................................................................................…
Assembly language · 2 marks · official answer ready
(ii) Explain how the instruction ADD 20 can be interpreted as either direct or indirect addressing. Direct addressing .............................................................…
Assembly language · 2 marks · official answer ready
(b) The assembly language instructions in the following table use either symbolic addressing or absolute addressing. Tick (3) one box in each row to indicate whether the instructi…
Assembly language · 1 mark · official answer ready
(i) The contents of X represent an unsigned binary integer. Convert the value in X into denary. ...................................................................................…
Assembly language · 8 marks · official answer ready
(d) The current contents of the main memory, Index Register (IX) and selected values from the ASCII character set are provided with a copy of the instruction set. Address Instruct…
Assembly language · 11 marks · official answer ready
(i) State what is meant by absolute addressing and symbolic addressing. Absolute addressing .......................................................................................…
Assembly language · 11 marks · official answer ready
(ii) Give an example of an ADD instruction using both absolute addressing and symbolic addressing. Absolute addressing ............................................................…
Assembly language · 11 marks · official answer ready
(i) State what is meant by indexed addressing and immediate addressing. Indexed addressing ........................................................................................…
Assembly language · 11 marks · official answer ready
(ii) Give an example of an instruction that uses: Indexed addressing ........................................................................................................... Im…
Assembly language · 10 marks · official answer ready
(i) The contents of X represent an unsigned binary integer. Convert the value in X into denary. ...................................................................................…
Assembly language · 16 marks · official answer ready
(d) The current contents of the main memory, Index Register (IX) and selected values from the ASCII character set are: Address Instruction ASCII code table (selected codes only) 4…
