Lab Exam (Copy)
Lab Exam (Copy)
Lab Exam (Copy)
Instruction:
You will be asked to do one of the questions randomly in a computer lab.
It is expected from you to study all the questions before you came to the exam. You can
bring the answer for the question with paper or Flash disk.
1. Write a program that loads AX register by 4567H and BL by 34H and then copy that to
a memory address of 45234H and DL registers respectively. Run your program and
show if you have done it correctly.
3. Write a program that will count the number of 1s and 0s in AX register and store the
the number of 1s in BH register and number of 0s in BL register.
4. Write a program to copy a string byte of data 125H length from a memory location of
7AE45H to 80943H.
8. Write a program to turn ON all green lights in the traffic light if the value of CL
register is 11H
9. Write a program to turn ON all yellow lights in the traffic light if the value of CL
register is 22H
10. Write a program to turn ON all red lights in the traffic light if the value of CL register
is 33H
Page 1 of 1