ECE4202
Microprocessor & Interfacing
Laboratory Experiments
EXPERIMENT NO. 1
AIM : WRITE A PROGRAM USING 8086 TO ADD BINARY NUMBERS
EACH 8 BYTES LONG & VERIFY.
APPARATUS : 8086 microprocessor kit, 5V power supply, Keyboard.
Input Data and Output Data:-
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.
EXPERIMENT NO. 2
AIM : WRITE A PROGRAM USING 8086 FOR DIVISION OF A DEFINED
DOUBLE WORD BY ANOTHER WORD & VERIFY.
APPARATUS : 8086 microprocessor kit, 5V power supply, Keyboard.
THEORY(Program)
Memory Address Machine Code Mnemonics Operands Comments
0400 B8,78,56 MOV AX,5678H Move 5678 to AX
0403 BA,34,12 MOV DX,1234H Move 1234 to DX
0406 B9,25,25 MOV CX,2525 H Move 2525 to CX
0409 F7,F1 DIV CX Divide AX&DX by CX
040b CD,A5 MOV [0501], AX Store Quotient
040d. CD,A5 MOV [0503], DX Store Quotient
CIRCUIT DIAGRAM / BLOCK DIAGRAM:-,
Input Data and Output Data:-
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.
EXPERIMENT NO. 3
AIM : WRITE A PROGRAM USING 8086 TO FIND THE MAXIMUM NO.
IN GIVEN STRING AND STORE IT IN LOCATION 0510 & VERIFY.
APPARATUS : 8086 microprocessor kit, 5V power supply, Keyboard.
Input Data and Output Data:-
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.
EXPERIMENT NO. 4
AIM : WRITE A PROGRAM USING 8086 TO SORT A STRING A NO. OF
BYTES IN DESCENDING ORDER & VERIFY.
APPARATUS : 8086 microprocessor kit, 5V power supply, Keyboard.
Input Data and Output Data:-
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.
EXPERIMENT NO. 5
AIM : WRITE A PROGRAM USING 8086 TO DIVIDE A STRING OF
UNPACKED ASCII DIGITS & VERIFY.
APPARATUS : 8086 microprocessor kit, 5V power supply, Keyboard.
Input Data and Output Data:-
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.
EXPERIMENT NO. 6
AIM : WRITE A PROGRAM USING 8086 FOR COPYING 12 BYTES OF
DATA FROM SOURCE TO DESTINATION & VERIFY.
APPARATUS : 8086 microprocessor kit, 5V power supply, Keyboard.
THEORY(Program)
0401 FC CLD Clear direction flag DF
0402 BE,00,03 MOV SI,0500 Source address in SI
0405 BF,02,02 MOV DI,0602 Destination address in DI
0408 8B,0C MOV CX,[SI] Count in CX
040A 46 INC SI Increment SI
040B 46 INC SI Increment SI
040C A4 MOV SB SB Move byte
040D E2,FD LOOP 040C Jump to BACK until
CX becomes zero
010F HLT END program
Input Data and Output Data:-
INPUT DATA 50B : 0A
500 : 0B 50C : 0B
501 : 00 50D : 0E
502 : 03
503 : 04
504 : 05 OUTPUT DATA
505 : 06 602 : 03
506 : 15 603 : 04
507 : 07 604 : 05
508 : 12 605 : 06
509 : 08 606 : 15
50A : 09 607 : 07
608 : 12
609 : 08
60A : 09
60B : 0A
60C : 0B
60D : 0E
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.
EXPERIMENT NO. 7
AIM : WRITE A PROGRAM USING 8086 THE A DATA STRING OF NO.
OF BYTES IS LOCATED FROM THE STARTING ADDRESS 0500. THIS
DATA IS TO BE CONVERTED TO ITS EQUIVALENT 2’S COMPLEMENT
FORM AND STORE FROM 600 ON WARDS & VERIFY.
APPARATUS : 8086 microprocessor kit, 5V power supply, Keyboard.
Input Data and Output Data:-
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.
Input Data and Output Data:-
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.
AIM : WRITE A PROGRAM USING 8086 TO FIND THE MAXIMUM NO.
IN GIVEN STRING AND STORE IT IN LOCATION 0510 & VERIFY.
APPARATUS : 8086 microprocessor kit, 5V power supply, Keyboard.
Input Data and Output Data:-
PRECAUTIONS:-
Make sure that all the machine codes should be as per specified
in the program.