4.2 Assembly language
24 questions in this subtopic. Open a question to solve it and check the official answer.
Assembly language · 3 marks · official answer ready
(i) Explain what is meant by these terms. Macro ................................................................................................................................ ..…
Assembly language · 1 mark · official answer ready
(ii) Give an example of the use of a directive. ...................................................................................................................................…
Assembly language · 5 marks · official answer ready
(d) The following table shows part of the instruction set for a processor. The processor has one general purpose register, the Accumulator (ACC), and an Index Register (IX). Instr…
Assembly language · 6 marks · official answer ready
(e) The program given in part (d) is to be translated using a two-pass assembler. The program has been copied here for you. Label Instruction StartProg: LDV #Offset CMP Value JPE …
Assembly language · 5 marks · official answer ready
(b) The following table shows part of the instruction set for a processor. The processor has one general purpose register, the Accumulator (ACC), and an Index Register (IX). Instr…
Assembly language · 3 marks · official answer ready
(c) The program given in part (b) is to be translated using a two-pass assembler. The program has been copied here for you. The program now starts with a directive which tells the…
Assembly language · 0 marks
6 A large warehouse stores goods that must be kept above a temperature of 15 degrees Celsius. The warehouse has six temperature sensors which are each placed at a different locati…
Assembly language · 4 marks · official answer ready
(i) The code uses six memory locations to store the temperature readings. It stores readings for sensors 1 to 6 at addresses 8000 to 8005. At a particular time, the memory locatio…
Assembly language · 2 marks · official answer ready
(ii) Explain why the operand of the instruction labelled Q1 has the value 32. .....................................................................................................…
Assembly language · 3 marks · official answer ready
(ii) The following table shows part of the instruction set for a processor. The processor has one general purpose register, the Accumulator (ACC). Instruction Explanation Op code …
Assembly language · 0 marks
6 A large warehouse stores goods that must be kept above a temperature of 15 degrees Celsius. The warehouse has six temperature sensors which are each placed at a different locati…
Assembly language · 4 marks · official answer ready
(i) The code uses six memory locations to store the temperature readings. It stores readings for sensors 1 to 6 at addresses 8000 to 8005. At a particular time, the memory locatio…
Assembly language · 2 marks · official answer ready
(ii) Explain why the operand of the instruction labelled Q1 has the value 32. .....................................................................................................…
Assembly language · 10 marks · official answer ready
(b) Six values are stored, starting at the location VALUES. A program is needed to divide each of the values by 8 and store them back in their original location. Write this progra…
Assembly language · 11 marks · official answer ready
(i) Name an appropriate project management tool that helps the manager to work out the estimated length of time it takes for the project to complete. .............................…
Assembly language · 13 marks · official answer ready
(ii) Explain how, during the planning stage of the project, the manager would use the tool you named in part (a)(i). ..............................................................…
Assembly language · 11 marks · official answer ready
(i) Different programmers have been writing independent modules. The modules now need to be combined to create the final system. Name the type of testing required at this stage. .…
Assembly language · 11 marks · official answer ready
(ii) Name the final testing stage required before the system becomes operational. .................................................................................................…
Assembly language · 3 marks · official answer ready
(b) Each machine code instruction is encoded as 16-bits (8-bit op code followed by an 8-bit operand). Write the machine code for the following instructions: LDM #17 LDX #97 [3]
Assembly language · 2 marks · official answer ready
(ii) A second instruction has been written in hexadecimal as: 05 3F Write the equivalent assembly language instruction, with the operand in denary. ...............................…
