4.2 Assembly language
131 questions in this subtopic. Open a question to solve it and check the official answer.
Assembly language · 3 marks · official answer ready
(ii) Show the contents of the Accumulator after execution of the instruction: LDI 124 Accumulator: Explain how you arrived at your answer. ........................................…
Assembly language · 6 marks
(b) Trace the assembly language program using the trace table. 300 LDD 321 301 INC 302 STO 323 303 LDI 307 304 INC 305 STO 322 306 END 307 320 320 49 321 36 322 0 323 0 Trace tabl…
Assembly language · 4 marks · official answer ready
(i) The accumulator is loaded with the value of byte 1 from location 106. Write the assembly language instruction to check whether the reading in byte 2 came from location 4. LDD …
Assembly language · 2 marks · official answer ready
(ii) Write the assembly language instruction to set the flag (bit 0) of the byte contained in the accumulator to 1. ...............................................................…
Assembly language · 8 marks
7 6 5 4 3 2 1 0 0 0 1 0 0 0 0 1 0 0 0 1 1 0 0 0 Byte 1 Byte 2 .....................................................................................................................…
Assembly language · 6 marks
7 6 5 4 3 2 1 0 0 0 1 0 0 0 0 1 0 0 0 1 1 0 0 0 Byte 1 Byte 2 .....................................................................................................................…
Assembly language · 4 marks · official answer ready
(i) The accumulator is loaded with the value of byte 1 from location 106. Write the assembly language instruction to check whether the reading in byte 2 came from location 4. LDD …
Assembly language · 2 marks · official answer ready
(ii) Write the assembly language instruction to set the flag (bit 0) of the byte contained in the accumulator to 1. ...............................................................…
Assembly language · 8 marks
7 6 5 4 3 2 1 0 0 0 1 0 0 0 0 1 0 0 0 1 1 0 0 0 Byte 1 Byte 2 .....................................................................................................................…
Assembly language · 6 marks
7 6 5 4 3 2 1 0 0 0 1 0 0 0 0 1 0 0 0 1 1 0 0 0 Byte 1 Byte 2 .....................................................................................................................…
Assembly language · 3 marks · official answer ready
(ii) The accumulator is loaded with the data from location 150. Write the assembly language instruction to check whether there is a value waiting to be processed for sensor 6. LDD…
