4.2 Assembly language
131 questions in this subtopic. Open a question to solve it and check the official answer.
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. ...............................…
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 these instructions: LDM #67 LDX #7 [3]
Assembly language · 2 marks · official answer ready
(ii) A second instruction has been written in hexadecimal as: 16 4D Write the assembly language for this instruction with the operand in denary. ..................................…
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. ...............................…
Assembly language · 1 mark · official answer ready
(i) Show the contents of the Accumulator after execution of the instruction: LDD 802 Accumulator: [1] 11
Assembly language · 4 marks · official answer ready
(i) Complete the trace table below for the following assembly language program. This program contains denary values. 100 LDD 800 101 ADD 801 102 STO 802 103 LDD 803 104 CMP 802 10…
Assembly language · 1 mark · official answer ready
(ii) There is a redundant instruction in the code in part (b)(i). State the address of this instruction. ..........................................................................…
Assembly language · 2 marks · official answer ready
(i) Give two disadvantages of using ASCII code. 1 .................................................................................................................................…
Assembly language · 2 marks · official answer ready
(ii) Describe how Unicode is designed to overcome the disadvantages of ASCII. .....................................................................................................…
