4.2 Assembly language
131 questions in this subtopic. Open a question to solve it and check the official answer.
Assembly language · 4 marks
5 ...................................... Three statements A, B and C are used to complete the sequence. A DNS finds corresponding IP address B Web browser sends URL to Domain Name…
Assembly language · 2 marks · official answer ready
(a) State what is meant by relative addressing and indexed addressing. Relative addressing ........................................................................................…
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 · 1 mark · official answer ready
(iv) Show the result on the general purpose register (X) after the following instruction is run. INC X [1] 6
Assembly language · 7 marks · official answer ready
(c) 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 · 5 marks · official answer ready
(ii) A student uses the compiler to compile some different code. After the syntax analysis stage is complete, the compiler generates object code. The following lines of code are c…
Assembly language · 3 marks · official answer ready
(ii) Rewrite the equivalent code following the final stage. .......................................................................................................................…
Assembly language · 2 marks · official answer ready
(iii) State two benefits of the process that is carried out in the final stage. Benefit 1 .........................................................................................…
Assembly language · 5 marks · official answer ready
(ii) A student uses the compiler to compile some different code. After the syntax analysis stage is complete, the compiler generates object code. The following lines of code are c…
Assembly language · 3 marks
(d) A hardware device to affect the temperature of each tank is on or off depending on the value of a bit in memory location 6753. If bit 4 is 1, then the hardware device in fish …
Assembly language · 8 marks
7 6 5 4 3 2 1 0 Byte 1 Byte 2 The fish tank number is indicated by setting one of the bits in Byte 1 to 1. For example, fish tank number 5 is indicated by setting bit 5 to 1. Bit …
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. .....................................................................................................…
