4.2 Assembly language
86 questions in this subtopic. Open a question to solve it and check the official answer.
Assembly language · 2 marks · official answer ready
(i) LDD 78 Case 1 / Case 2 Explanation: ....................................................................................................................... ...................…
Assembly language · 2 marks · official answer ready
(ii) INC ACC Case 1 / Case 2 Explanation: ....................................................................................................................... .................…
Assembly language · 2 marks · official answer ready
(i) The instruction at address 102 is fetched. 100 LDI 150 ACC 101 OUTCH 102 LDD 203 103 INC ACC 104 STO 150 IX 105 JP 100 106 END 107 Show the contents of the registers after exe…
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…
Assembly language · 1 mark · official answer ready
(i) What is the maximum number of different instructions this processor could have? ...............................................................................................…
Assembly language · 2 marks · official answer ready
(ii) Consider the instruction: Describe what this instruction does. ...............................................................................................................…
Assembly language · 1 mark · official answer ready
(iii) Programmers prefer to write machine code instructions in hexadecimal. Explain why. ..........................................................................................…
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…
Assembly language · 2 marks · official answer ready
(v) LDI 150 [2]
Assembly language · 2 marks · official answer ready
(vi) LDV 15 [2]
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 …
Assembly language · 2 marks · official answer ready
(i) LDV 35 Case 1 / Case 2 Explanation ....................................................................................................................... ....................…
Assembly language · 2 marks · official answer ready
(ii) LDD 35 Case 1 / Case 2 Explanation ....................................................................................................................... ...................…
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…
Assembly language · 23 marks · official answer ready
(d) The following table shows some of a processor’s instruction set in assembly language. For Examiner's Use Instruction Explanation Op Code Operand Direct addressing. Load the co…
Assembly language · 23 marks · official answer ready
(d) The following table shows some of a processor’s instruction set in assembly language. For Examiner's Use Instruction Explanation Op Code Operand LIX Load the contents of the a…
Assembly language · 34 marks
3 [3] (b) (i) What is the relationship between car and customer? [1] (ii) What is the relationship between depot and car? [1] (c) A database solution is to be developed. Two of th…
Assembly language · 7 marks · official answer ready
3 [3] (d) The following table shows some of a processor’s instruction set in assembly language. For Examiner's Use Instruction Explanation Op Code Operand Direct addressing. Load …
Assembly language · 1 mark · official answer ready
(a) The instruction at address 100 is fetched. Shown are the contents of the registers after execution. 100 LD■ 202 101 INC ACC ACC 102 INC ACC 88 103 LD■ 203 104 INC ACC 105 LDI …
Assembly language · 1 mark · official answer ready
(b) The instruction at address 103 is fetched. Shown are the contents of the registers after execution. ACC 126 IX 2 Which mode of addressing was used by this load instruction at …
