ashu26
Newbie level 1
Q1) When microprocessor reads an input port, the instruction IN does not set any flag. If the input reading is zero, what logic instruction can be used to set the zero flag without affecting the contents of the accumulator?
Q2) (IMAGE UPLOADED for this question) To conserve energy and to avoid an electrical overload on a hot afternoon, implement the following procedures to control the appliances throghout the house. Assume that the control switches are located in the kitchen and they are available to anyone in the house. Write a set of instruction to-
a) turn ON the AC if switch S7 of the i/p port 00H is ON.
b) Ignore all other switches of the i/p port even if someone attempts to turn on on\ther appliances.
c)Now, Keep the radio on( D4) continously without affecting the function of ther appliances, even if some turn off the switch S4.
Please write and explain the instructions for above questions. Thank you so much!:idea:
Q2) (IMAGE UPLOADED for this question) To conserve energy and to avoid an electrical overload on a hot afternoon, implement the following procedures to control the appliances throghout the house. Assume that the control switches are located in the kitchen and they are available to anyone in the house. Write a set of instruction to-
a) turn ON the AC if switch S7 of the i/p port 00H is ON.
b) Ignore all other switches of the i/p port even if someone attempts to turn on on\ther appliances.
c)Now, Keep the radio on( D4) continously without affecting the function of ther appliances, even if some turn off the switch S4.
Please write and explain the instructions for above questions. Thank you so much!:idea:
Last edited: