Computing 9691 · 4

4.2 Assembly language

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

Reset
2014 October-November · Paper 31 · Q4(a)(ii)

Assembly language · 3 marks · official answer ready

(ii) The instruction at address 100 is fetched. 200 65 ACC 201 76 202 65 203 77 204 32 IX 205 32 Show the contents of the registers after execution. Write on the diagram to explai…

2014 October-November · Paper 31 · Q4(b)(i)

Assembly language · 1 mark · official answer ready

(i) What is the maximum number of different instructions this processor could have? ...............................................................................................…

2014 October-November · Paper 31 · Q4(b)(ii)

Assembly language · 2 marks · official answer ready

(ii) Consider the instruction: Describe what this instruction does. ...............................................................................................................…

2014 October-November · Paper 31 · Q4(b)(iii)

Assembly language · 1 mark · official answer ready

(iii) Programmers prefer to write machine code instructions in hexadecimal. Explain why. ..........................................................................................…

2014 October-November · Paper 31 · Q4(b)(iv)

Assembly language · 1 mark · official answer ready

(iv) What is the hexadecimal number for the instruction shown in part (b)(ii)? ................................................... [1] Show the machine code for the following inst…

2014 October-November · Paper 31 · Q4(b)(v)

Assembly language · 2 marks · official answer ready

(v) LDI 150 [2]

2014 October-November · Paper 31 · Q4(b)(vi)

Assembly language · 2 marks · official answer ready

(vi) LDV 15 [2]

2014 October-November · Paper 31 · Q4(c)

Assembly language · 5 marks · official answer ready

(c) Use the ASCII code table to trace the first four iterations of the given program. ASCII code table (part) Character Decimal Character Decimal Character Decimal 32 I 73 R 82 A …

2014 October-November · Paper 31 · Q5(d)(i)

Assembly language · 2 marks · official answer ready

(i) LDV 35 Case 1 / Case 2 Explanation ....................................................................................................................... ....................…

2014 October-November · Paper 31 · Q5(d)(ii)

Assembly language · 2 marks · official answer ready

(ii) LDD 35 Case 1 / Case 2 Explanation ....................................................................................................................... ...................…

2014 October-November · Paper 31 · Q6(b)(ii)

Assembly language · 1 mark · official answer ready

(ii) Consider three assembly language instructions that were given in Question 4. Instruction Explanation Op Code Operand LDD Direct addressing. Load the contents of the given add…

2014 October-November · Paper 32 · Q4(a)(i)

Assembly language · 1 mark · official answer ready

(i) What is the maximum number of memory locations which can be directly addressed? ...............................................................................................…

2014 October-November · Paper 32 · Q4(a)(ii)

Assembly language · 2 marks · official answer ready

(ii) Consider the instruction: Describe what this instruction does. ...............................................................................................................…

2014 October-November · Paper 32 · Q4(a)(iii)

Assembly language · 1 mark · official answer ready

(iii) Programmers prefer to write machine code instructions in hexadecimal. Explain why. ..........................................................................................…

2014 October-November · Paper 32 · Q4(a)(iv)

Assembly language · 1 mark · official answer ready

(iv) What is the hexadecimal number for the machine code instruction shown in part (b)(ii)? ............................................................ [1]

2014 October-November · Paper 32 · Q4(a)(v)

Assembly language · 2 marks · official answer ready

(v) Show the 16-bit machine code for the following instruction: JPE 204 [2]

2014 October-November · Paper 32 · Q4(a)(vi)

Assembly language · 2 marks · official answer ready

(vi) A programmer makes the statement: “For this instruction set, some of the instructions do not require an operand” Circle if this statement is true or false. Explain your choic…

2014 October-November · Paper 32 · Q4(b)

Assembly language · 5 marks · official answer ready

(b) Use the ASCII code table to trace execution of the given program. ASCII code table (part) Character Decimal Character Decimal Character Decimal 32 I 73 R 82 A 65 J 74 S 83 B 6…

2014 October-November · Paper 32 · Q5(a)

Assembly language · 2 marks · official answer ready

5 (a) An assembler translates assembly language programs. A compiler translates high-level language programs. They each do this for programs written in a particular language and f…

2014 October-November · Paper 32 · Q5(b)

Assembly language · 5 marks · official answer ready

(b) In the early stages of program development, a source program usually has errors. Each statement below (labelled A, B, C, D, E, F, G and H) describes one step in the developmen…