Vous êtes sur la page 1sur 1

HITEC UNIVERSITY Heavy Industries Taxila Education City, Taxila Cantt-Pakistan Department of Electrical Engineering Microprocessor and Interfacing

Techniques Assignment 2, Fall-2011 Instructions: The due date and time of submission of the assignment is Friday 18-11-11 till 12:00 Noon. No assignment will be accepted after due date and time. Only handwritten assignments will be acceptable. Please write question description along with answers.

------------------------------------------------------------------------------------------------------------------------------------Q1 Q2 Q3 Compare the operation of a MOV DI, NUMB instruction with an LEA DI, NUMB instruction. Explain the difference between the SUB and CMP instructions. Write a program i.e. There are 10 signed bytes stored in memory, some of which are negative and some of which are positive. Find the largest number among them and display it. Q4 Write a program i.e. An 8086 is used to monitor temperature at 20 points and send out alarms if the temperature at any point is greater than the maximum allowed. Hence, there are 20 input ports to get the temperature value (from the corresponding sensors), and 20 output ports to send alarms. The input ports have addresses ranging from EC00H and EC13H, and the output port addresses range 0200H to 0213H. The maximum allowed temperature is MAX and this is stored in memory (here we take MAX=65). Sending an alarm is done by transferring the number 01 to the corresponding output port.

Vous aimerez peut-être aussi