MP Record
MP Record
Ex no : 1
Date :8.12.21
ADDITION OF TWO 16 BIT NUMBERS USING 8086
AIM:
To perform addition of two 16 bit numbers using 8086.
PROGRAM:
RESULT:
Thus, addition of two 16 bit numbers has been performed and output has been generated
successfully.
AIM:
To perform subtraction of two 16 bit numbers using 8086.
PROGRAM:
RESULT:
Thus, subtraction of two 16-bit numbers has been performed and output has been generated
successfully.
Page no:02
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 3
Date :8.12.21
MULTIPLICATION OF TWO 16 BIT NUMBERS USING 8086
AIM:
To perform multiplication of two 16 bit numbers using 8086.
PROGRAM:
RESULT:
Thus, multiplication of two 16 bit numbers has been performed and output has been generated
successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 4
Date :10.12.21
DIVISION OF TWO 16 BIT NUMBERS USING 8086
AIM:
To perform division of two 16 bit numbers using 8086.
PROGRAM:
RESULT:
Thus, division of two 16 bit numbers has been performed and output has been generated
successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 5
Date :10.12.21
AND OPF TWO 16 BIT NUMBERS USING 8086
AIM:
To perform and operation of two 16-bit numbers using 8086.
PROGRAM:
RESULT:
Thus, AND operation of two 16-bit numbers has been performed and output has been
generated successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 6
Date :12.12.21
OR OF TWO 16 BIT NUMBERS USING 8086
AIM:
To perform OR of two 16-bit numbers using 8086.
PROGRAM:
RESULT:
Thus, OR operation of two 16 bit numbers has been performed and output has been
generated successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 7
Date :12.12.21
XOR OF TWO 16 BIT NUMBERS USING 8086
AIM:
To perform XOR of two 16 bit numbers using 8086.
PROGRAM:
RESULT:
Thus, XOR operation of two numbers has been performed and output has been executed
successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 8
Date :12.12.21
NOT OF A 16 BIT NUMBERS USING 8086
AIM:
To perform a NOT operation of A 16-bit number.
PROGRAM:
RESULT:
Thus, NOT operation of a 16-bit number has been performed and output is executed
successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 9
Date : 14.12.2021
SHIFT LEFT BY 1-BIT OF A 16-BIT NUMBER USING 8086
AIM:
To perform left shift by 1-bit of a 16-bit number using 8086.
PROGRAM:
RESULT:
Thus, left shift of a 16-bit number by 1-bit has been performed and the output has been
generated.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 10
Date : 14.12.2021
SHIFT RIGHT BY 1-BIT OF A 16-BIT NUMBER USING 8086
AIM:
To perform right shift by 1-bit of a 16-bit number using 8086.
PROGRAM:
RESULT:
Thus, right shift of a 16-bit number by 1-bit has been performed and the output has been
generated.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 11
Date : 14.12.2021
AVERAGE OF GIVEN WORD VALUES STORED IN MEMORY USING 8086
AIM:
To find the average of given word values using 8086.
PROGRAM:
Page no:0
SAMPLE INPUT AND OUTPUT:
RESULT:
Thus, average of given word values using 8086 has been performed and output has been
generated successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 12
Date : 14.12.2021
BLOCK TRANSFER USING 8086
AIM:
To transfer data in blocks using 8086.
PROGRAM:
Page no:0
SAMPLE INPUT AND OUTPUT:
RESULT:
The block transfer using 8086 has been performed and output has been generated successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 13
Date : 16.12.2021
CONVERSION OF HEXADECIMAL BYTE VALUE TO ITS ASCII VALUE USING 8086
AIM:
To convert a hexadecimal byte to ASCII value using 8086
PROGRAM:
LOOK UP TABLE:
Page no:0
SAMPLE INPUT AND OUTPUT:
INITIAL 0003H
AH AL 0000 0000 0000 0011
AX 0011 0000 0011 0111
INITIAL 0007H
AH AL 0000 0000 0000 0111
AX 0011 0000 0011 0111
INITIAL 0008H
AH AL 0000 0000 0000 1000
AX 0011 0000 0011 1000
RESULT:
Thus, the conversion of Hexadecimal by byte to its ASCII value has been performed and
output has been generated successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 14
Date : 16.12.2021
TO FIND FACTORIAL OF A GIVEN NUMBER USING 8086
AIM:
To find factorial of a given number using 8086
PROGRAM:
Page no:0
SAMPLE INPUT AND OUTPUT:
RESULT:
Thus, factorial of a given number has been performed and output has been generated.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 15
Date : 16.12.2021
TO FIND LARGEST VALUE IN A STRING OF DATA BYTES USING 8086
AIM:
To find the largest value in a string of data bytes using 8086.
PROGRAM:
Page no:0
SAMPLE INPUT AND OUTPUT:
RESULT:
Thus, finding largest number in a string of data bytes has been performed and output has
been generated successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 16
Date : 16.12.2021
TO FIND SMALLEST VALUE IN A STRING OF DATA BYTES USING 8086
AIM:
To find the smallest value in a string of data bytes using 8086.
PROGRAM:
Page no:0
RESULT:
Thus, the smallest value in a string of data bytes using 8086 has been performed and output
has been generated successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 17
Date : 17.12.2021
EXCHANGING TWO BLOCKS OF DATA STORED IN MEMORY USING 8086
AIM:
To exchange two blocks of data stored in memory using 8086.
PROGRAM:
ADDRESS LABEL MNEMONICS OPCODE COMMENTS
Page no:0
2025 REP A3 Repeat until value of CX register is 0
3000 00 3000 00
3001 01 3001 02
3002 02 3002 04
3003 03 3003 06
3004 04 3004 08
3200 13 3200 01
3201 12 3201 03
3202 11 3202 05
3203 10 3203 07
3204 0F 3204 09
3000 13 3000 01
3001 12 3001 03
3002 11 3002 05
3003 10 3003 07
3004 0F 3004 09
3200 00 3200 00
3201 01 3201 02
3202 02 3202 04
3203 03 3203 06
3204 04 3204 08
RESULT:Thus two blocks of data stored in memory have been exchanged successfully.
Page no:0
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 18
Date : 18.12.2021
PACKED BCD TO ASCII USING 8086
AIM:
To convert BCD to ASCII using 8086.
PROGRAM:
ADDRESS LABEL MNEMONICS OPCODE COMMENTS
4100 04
4102 3034
Initial 04
After
Page no:
ADDRESS DATA
4100 08
4102 3038
Initial 08
After
ADDRESS DATA
4100 05
4102 3035
Initial 05
After
RESULT:
Thus, conversion of packed BCD to ASCII has been performed and output has been generated
successfully
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 19
Date : 18.12.2021
ASCII TO PACKED BCD USING 8086
AIM:
To convert ASCII value to packed BCD using 8086.
PROGRAM:
ADDRESS DATA
6100 32
6101 34
6102 24
RESULT:
Thus, ASCII to Packed BCD is conversion has been performed and output has been generated
successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 20
Date : 18.12.2021
DECIMAL ADJUST AFTER ADDITION USING 8086
AIM:
To perform decimal adjust after addition using 8086.
PROGRAM:
ADDRESS DATA
4100 20
4102 20
4200 40
4202 00
Page no:
RESULT:
Thus decimal adjust after addition has been performed and output has been generated
successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 21
Date : 21.12.2021
DECIMAL ADJUST AFTER SUBTRACTION USING 8086
AIM:
To perform decimal adjust after subtraction using 8086.
PROGRAM:
RESULT:
Thus, decimal adjust after subtraction has been performed and output has been generated
successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 22
Date : 21.12.2021
TO PERFORM MATRIX ADDITION USING 8086
AIM:
To perform matrix addition using 8086.
PROGRAM:
Page no:
SAMPLE INPUT AND OUTPUT:
ADDRESS DATA
2100 0F
2101 02
2102 0B
2103 04
2200 05
2201 06
2202 07
2203 08
2300 0014
2302 0008
2304 0012
2306 000C
RESULT:
Thus matrix addition has been performed and output has been generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 23
Date : 21.12.2021
TO PERFORM MATRIX SUBRACTION USING 8086
AIM:
To perform matrix subtraction using 8086.
PROGRAM:
Page no:
SAMPLE INPUT AND OUTPUT:
ADDRESS DATA
2100 0F
2101 0B
2102 1B
2103 0C
2200 07
2201 02
2202 05
2203 01
2300 08
2302 09
2304 16
2306 0B
RESULT:
Thus, matrix subtraction has been performed and output has been generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 24
Date : 24.12.2021
SORTING AN ARRAY IN ASCENDING ORDER USING 8086
AIM:
To sort an array in ascending order using 8086.
PROGRAM:
Page no:
Decrement value in CH register by
2026 DEC CH FE CD
1
2028 JNZ L2 75 BB Jump if not zero to L2
202A HLT F4 Stop
ADDRESS DATA
5100 0004
5102 0009
5104 0008
5106 0001
5108 0003
5100 0004
5102 0001
5104 0003
5106 0008
5108 0009
RESULT:
Thus, sorting an array in ascending order has been performed and output has been generated
successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 25
Date : 24.12.2021
SORTING AN ARRAY IN DESCENDING ORDER USING 8086
AIM:
To sort an array in descending order using 8086.
PROGRAM:
Page no:
2024 DEC CL FE C9 Jump if not zero to L2
2026 JNZ L3 75 E8 Stop
2028 JNZ L2 FE CD
202A HLT F4
ADDRESS DATA
5100 0004
5102 0001
5104 0007
5106 0002
5108 0006
5100 0004
5102 0007
5104 0006
5106 0002
5108 0001
RESULT:
Thus, sorting an array in descending order has been performed and output has been
generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 26
Date : 24.12.2021
ADDITION USING 8051
AIM:
To Perform addition of two 8 bit numbers using 8051
PROGRAM:
Page no:
SAMPLE INPUT AND OUTPUT:
ADDRESS DATA
8100 04
8101 03
8102 07
8103 00
ADDRESS DATA
8100 05
8101 05
8102 0A
8103 00
ADDRESS DATA
8100 05
8101 03
8102 08
8103 00
RESULT:
Thus, addition of two 8 bit numbers using 8051 has been performed and output has been
generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 27
Date : 24.12.2021
SUBTRACTION USING 8051
AIM:
To Perform subtraction of two 8 bit numbers using 8051
PROGRAM:
Page no:
SAMPLE INPUT AND OUTPUT:
ADDRESS DATA
8101 09
8102 05
8103 04
8104 00
ADDRESS DATA
8101 0F
8102 0E
8103 01
8104 00
ADDRESS DATA
8101 0A
8102 03
8103 07
8104 00
RESULT:
Thus, Subtraction of two 8 bit numbers using 8051 has been performed and output has been
generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 28
Date : 27.12.2021
MULTIPLICATION USING 8051
AIM:
To Perform multiplication of two numbers using 8051
PROGRAM:
Page no:
SAMPLE INPUT AND OUTPUT:
ADDRESS DATA
8300 02
8301 04
8302 08
8303 00
ADDRESS DATA
8300 03
8301 03
8302 09
8303 00
ADDRESS DATA
8300 03
8301 02
8302 06
8303 00
RESULT:
Thus Multiplication of two 8 bit numbers using 8051 has been performed and output has
been generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 29
Date : 27.12.2021
DIVISION USING 8051
AIM:
To Perform division of two numbers using 8051
PROGRAM:
Page no:
SAMPLE INPUT AND OUTPUT:
ADDRESS DATA
8101 02
8102 07
8103 03
8104 01
ADDRESS DATA
8100 02
8101 04
8102 02
8103 00
ADDRESS DATA
8100 02
8101 02
8102 01
8103 00
RESULT:
Thus, division of two 8 bit numbers using 8051 has been performed and output has been
generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 30
Date : 27.12.2021
AND OPERATION USING 8051
AIM:
To perform and operation using 8051.
PROGRAM:
RESULT:
Thus, AND operation of two numbers using the 8051 has been performed and output has
been generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 31
Date : 27.12.2021
OR OPERATIION USING 8051
AIM:
To perform or operation of two numbers using 8051.
PROGRAM:
RESULT:
Thus, OR operation of two numbers using 8051 has been performed and output has been
generated successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 32
Date : 29.12.2021
XOR OPERTION USING 8051
AIM:
To perform XOR operation using 8051
PROGRAM:
RESULT:
Thus, XOR operation using 8051 has been performed and output has been generated
successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 33
Date : 29.12.2021
NOT OPERATION USING 8051
AIM:
To perform not operation using 8051.
PROGRAM:
ADDRESS DATA
8100 DE
8101 21
ADDRESS DATA
8100 A0
8101 5F
RESULT:
Thus, NOT operation using 8051 has been performed and output has been generated
successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 34
Date : 29.12.2021
SQUARE OF A NUMBER USING 8051
AIM:
To find square of a number using 8051.
PROGRAM:
ADDRESS DATA
8100 0002
8101 0004
ADDRESS DATA
8100 0003
8101 0009
RESULT:
Thus, square of a number using 8051 has been performed and output has been generated
successfully.
Page no:
CS18313 – MICROPROCESSOR LABORATORY
Ex no : 35
Date : 29.12.2021
CUBE OF A NUMBER USING 8051
AIM:
To find cube of a number using 8051.
PROGRAM:
ADDRESS DATA
8100 0002
8101 0008
ADDRESS DATA
8100 0003
8101 001B
RESULT:
Thus, cube of a number using 8051 has been performed and output is displayed successfully.
Page no: