Computer Science 9608 · 4

4.2 Assembly language

131 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2018 October-November · Paper 12 · Q5(c)(ii)

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…

2018 October-November · Paper 13 · Q2(a)

Assembly language · 2 marks · official answer ready

(a) State what is meant by relative addressing and indexed addressing. Relative addressing ........................................................................................…

2018 October-November · Paper 13 · Q2(b)(i)

Assembly language · 1 mark · official answer ready

(i) The contents of X represent an unsigned binary integer. Convert the value in X into denary. ...................................................................................…

2018 October-November · Paper 13 · Q2(b)(iv)

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

2018 October-November · Paper 13 · Q2(c)

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…

2018 October-November · Paper 31 · Q6(d)(ii)

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…

2018 October-November · Paper 32 · Q4(c)(ii)

Assembly language · 3 marks · official answer ready

(ii) Rewrite the equivalent code following the final stage. .......................................................................................................................…

2018 October-November · Paper 32 · Q4(c)(iii)

Assembly language · 2 marks · official answer ready

(iii) State two benefits of the process that is carried out in the final stage. Benefit 1 .........................................................................................…

2018 October-November · Paper 33 · Q6(d)(ii)

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…

2018 May-June · Paper 32 · Q6(d)

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 …

2018 May-June · Paper 32 · Q7(d)

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 …

2017 October-November · Paper 12 · Q4(c)(i)

Assembly language · 3 marks · official answer ready

(i) Explain what is meant by these terms. Macro ................................................................................................................................ ..…

2017 October-November · Paper 12 · Q4(c)(ii)

Assembly language · 1 mark · official answer ready

(ii) Give an example of the use of a directive. ...................................................................................................................................…

2017 October-November · Paper 12 · Q4(d)

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…

2017 October-November · Paper 12 · Q4(e)

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 …

2017 October-November · Paper 13 · Q4(b)

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…

2017 October-November · Paper 13 · Q4(c)

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…

2017 October-November · Paper 31 · Q6(c)

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…

2017 October-November · Paper 31 · Q6(c)(i)

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…

2017 October-November · Paper 31 · Q6(c)(ii)

Assembly language · 2 marks · official answer ready

(ii) Explain why the operand of the instruction labelled Q1 has the value 32. .....................................................................................................…