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) Describe what this instruction does. ..........................................................................................................................................…
Assembly language · 1 mark
(ii) Write this instruction in hexadecimal. .......................................................................................................................................…
Assembly language · 1 mark · official answer ready
(iii) Give a reason why programmers prefer to write machine code instructions in hexadecimal. .....................................................................................…
Assembly language · 2 marks · official answer ready
(iv) Write the binary pattern for the instruction: Store the contents of the Accumulator at address 90 (denary). [2]
Assembly language · 6 marks · official answer ready
(b) The user runs the following program and inputs the numbers 76, followed by 79 and 87. Trace the execution of the program by completing the trace table. ,1 287&+ 67, ,1& ,1& /'…
Assembly language · 2 marks · official answer ready
(i) STO 139 Case 1 / Case 2 ........................................................................................................................................... ...........…
Assembly language · 2 marks · official answer ready
(ii) INC ACC Case 1 / Case 2 ........................................................................................................................................... ..........…
Assembly language · 4 marks · official answer ready
4 (a) The following table shows some assembly language instructions from the computer’s instruction set. Instruction Explanation Op code Operand Direct addressing. Load the conten…
Assembly language · 4 marks · official answer ready
(b) A program written in assembly language needs translation before it can be executed. A programmer creates, translates and executes an assembly language program. Five of the six…
Assembly language · 4 marks · official answer ready
3 (a) The following table shows some assembly language instructions from the computer’s instruction set. Instruction Explanation Op code Operand Direct addressing. Load the conten…
Assembly language · 5 marks · official answer ready
(b) A program written in assembly language needs translation before it can be executed. A programmer creates, translates and executes an assembly language program. Five of the six…
Assembly language · 4 marks · official answer ready
4 (a) The following table shows some assembly language instructions from the computer’s instruction set. Instruction Explanation Op code Operand Direct addressing. Load the conten…
Assembly language · 4 marks · official answer ready
(b) A program written in assembly language needs translation before it can be executed. A programmer creates, translates and executes an assembly language program. Five of the six…
Assembly language · 1 mark · official answer ready
(a) State the type of diagram shown. .........................................................................................[1]
Assembly language · 7 marks · official answer ready
(b) Use the following list to identify the labels 1 to 7 on the diagram opposite. Two of the items on the list will not be used. • Error report • Linker • Loader • Machine code • …
Assembly language · 4 marks · official answer ready
7 .............................................................................................................................................. [3] 9 3 (e) Integers can be repres…
Assembly language · 1 mark · official answer ready
(a) State the type of diagram shown. .........................................................................................[1]
Assembly language · 7 marks · official answer ready
(b) Use the following list to identify the labels 1 to 7 on the diagram opposite. Two of the items on the list will not be used. • Error report • Linker • Loader • Machine code • …
Assembly language · 4 marks · official answer ready
7 .............................................................................................................................................. [3] 9 3 (e) Integers can be repres…
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…
