Computer Science 9608 · 4

4.2 Assembly language

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

Reset
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. .....................................................................................................…

2017 October-November · Paper 32 · Q6(d)(ii)

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 …

2017 October-November · Paper 33 · 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 33 · 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 33 · Q6(c)(ii)

Assembly language · 2 marks · official answer ready

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

2017 October-November · Paper 42 · Q5(b)

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…

2017 October-November · Paper 43 · Q5(a)(i)

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. .............................…

2017 October-November · Paper 43 · Q5(a)(ii)

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). ..............................................................…

2017 October-November · Paper 43 · Q5(b)(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. .…

2017 October-November · Paper 43 · Q5(b)(ii)

Assembly language · 11 marks · official answer ready

(ii) Name the final testing stage required before the system becomes operational. .................................................................................................…

2017 May-June · Paper 11 · Q4(b)

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]

2017 May-June · Paper 11 · Q4(d)(ii)

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. ...............................…