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
(c) The instruction at address 105 is fetched and executed. For Examiner's Use Draw on the diagram to explain how this instruction is executed and show the contents of ACC after e…
Assembly language · 5 marks · official answer ready
(d) Trace this assembly language program using the trace table below. For The user inputs 19 followed by 37. Examiner's Use 100 IN 101 INC ACC 102 STO 109 103 IN 104 INC ACC 105 A…
Assembly language · 3 marks
(e) In (d) the program was shown in assembly language. In practice this must be machine code in order to execute the program. Explain how the assembler software translates a progr…
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 …
Assembly language · 2 marks · official answer ready
(c) The instruction at address 105 is fetched and executed. For Examiner's Use Draw on the diagram to explain how this instruction is executed and show the contents of ACC after e…
Assembly language · 5 marks · official answer ready
(d) Trace this assembly language program using the trace table below. For The user inputs 19 followed by 37. Examiner's Use 100 IN 101 INC ACC 102 STO 109 103 IN 104 INC ACC 105 A…
Assembly language · 3 marks
(e) In (d) the program was shown in assembly language. In practice this must be machine code in order to execute the program. Explain how the assembler software translates a progr…
Assembly language · 1 mark · official answer ready
(a) The instruction at address 100 is fetched and executed. Shown are the contents of the For registers after execution. Examiner's Use 100 LD■ 202 101 INC ACC ACC 102 INC ACC 42 …
Assembly language · 2 marks · official answer ready
(b) The instruction at address 103 is fetched. Shown are the contents of the registers after execution. 100 LD■ 202 101 INC ACC ACC 102 INC ACC 38 103 LD■ 203 104 INC ACC 105 LDD …
Assembly language · 1 mark · official answer ready
(c) Refer to the program used in (a) and (b). The instruction at address 105 is fetched and For executed. Examiner's Use Show the contents of ACC after execution. ACC IX [1]
Assembly language · 4 marks · official answer ready
(d) Trace the first two iterations of this assembly language program using the trace table below. 100 LIX 120 101 LDX 200 102 INC ACC 103 OUT 104 INC IX 105 JMP 101 … 120 0 … … 20…
Assembly language · 3 marks · official answer ready
(e) In (d) the program was shown in assembly language. In practice this must be machine For code in order to execute the program. Examiner's Use Explain how the assembler software…
Assembly language · 2 marks · official answer ready
(i) Describe two advantages of using assembly language. 1 2 [2]
Assembly language · 3 marks · official answer ready
(ii) Describe three specific tasks done by the assembler software. 1 2 3 [3]
Assembly language · 6 marks · official answer ready
(a) Write on the diagram to explain the instruction shown. Show the contents of the Accumulator after the execution of the instruction. LDD 105 Main memory 100 0100 0000 101 0110 …
Assembly language · 9 marks · official answer ready
(c) Trace this assembly language program using the trace table below. For Examiner's 500 LDD 507 Use 501 INC 502 STO 509 503 LDD 508 504 INC 505 STO 510 506 END 507 22 508 170 509…
Assembly language · 5 marks
(d) Explain the relationship between assembly language instructions and machine code instructions. [1] 14
Assembly language · 6 marks · official answer ready
(a) Write on the diagram to explain the instruction shown. Show the contents of the Accumulator after the execution of the instruction. LDD 105 Main memory 100 0100 0000 101 0110 …
Assembly language · 9 marks · official answer ready
(c) Trace this assembly language program using the trace table below. For Examiner's 500 LDD 507 Use 501 INC 502 STO 509 503 LDD 508 504 INC 505 STO 510 506 END 507 22 508 170 509…
