Download Microprocessor & Micro Controller and more Exercises Microprocessors in PDF only on Docsity!
R VR V SS
RVS EDUCATIONAL TRUST’S GROUP OF
INSTITUTION
RVS Nagar, Dindigul- 624 005. Tamil Nadu.
Name : ……………………….
Register No: ………………………..
Year & Sec: ………………………..
RECORD NOTE BOOK
MICROPROCESSOR & MICROCONTROLLER LAB
R VR V SS
RVS EDUCATIONAL TRUST’S GROUP OF
INSTITUTION
RVS Nagar, Dindigul- 624 005. TAMILNADU.
RECORD NOTE BOOK
Reg.No.
Certify that this is the bonafide record of work done by
Selvan/Selvi…………….…….……………of the ……... semester
…………………………………… Branch during the year 20….-
20 …. in the ……………………………………… Laboratory.
Internal Examiner External Examiner
Staff-in-Charge Head of the Department
Submitted for the University Practical Examination
on...……...……….20 20.
16 BIT ADDITION USING ARITHMETIC OPERATION OF 8086 MICROPROCESSOR
AIM:
To write an assembly language program to perform addition of two 16 bit numbers
using 8086.
APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1
ALGORITHM:
16-bit addition
Get the first number is specific address.
Add the second number to the first number.
Add the two values.
Store the sum and carry.
Ex. NO: 01
DATE:
FLOW CHART:
ADDITION:
Ex. NO: 02
DATE:
16 BIT SUBTRACTION
USING ARITHMETIC OPERATION OF 8086 MICROPROCESSOR
AIM:
To write an assembly language program to perform subtraction of two 16 bit
numbers using 8086.
APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1
ALGORITHM:
16-bit SUBTRACTION:
Initialize the MSBs of difference to 0
Get the first number
Subtract the second number from the first number.
If there is any borrow, increment MSBs of difference by 1.
Store LSBs of difference.
Store MSBs of difference.
FLOECHART:
SUBTRACTION:
Ex. NO: 03
DATE:
16 BIT MULTIPLICATION USING ARITHMETIC OPERATION OF 8086
MICROPROCESSOR
AIM:
To write an assembly language program to perform Multiplication of two 16
bit numbers using 8086.
APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1
ALGORITHM:
16-bit MULTIPLICATION
Multiplication of 16-bit numbers:
Get the multiplier.
Get the multiplicand
Initialize the product to 0.
Product = product + multiplicand
Decrement the multiplier by 1.
If multiplicand is not equal to 0, repeat from step (d) otherwise store the
product.
FLOECHART:
MULTIPLICATION:
Ex. NO: 04
DATE:
16 BIT DIVISION USING ARITHMETIC OPERATION OF 8086 MICROPROCESSOR
AIM:
To write an assembly language program to perform division of two 16 bit
numbers using 8086.
APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIT 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1
ALGORITHM:
16-bit division
Division of 16-bit numbers:
Get the dividend and divisor.
Initialize the quotient to 0.
Dividend = dividend–divisor
If the divisor is greater, store the quotient
Go to step 3
If dividend is greater, quotient = quotient+ repeat from step 4.
FLOECHART:
DIVISION:
EX. NO: 05
DATE :
LOGICAL OPERATIONS USING 8086 MICROCONTROLLER
AIM:
To move a data block without overlap
APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1
ALGORITHM:
Initialize the memory location to the data pointer AL Register
Increment B register.
Increment accumulator by 1 and adjust it to decimal every time.
Compare the given decimal number with accumulator value.
Perform the given logical function value is in B register.
Store the resultant in memory location.
PROGRAM FOR “ AND” LOGIC
ADDRESS OPCODE LABEL MNEMONICS COMMENT
8000 MOV AL,04 Move data 04 to AL register
8003 MOV BL,03 Move data 03 to BL register
8007 ANDI BL AND Operation
800D MOV #9000,BL Result store in 9000 address
800B HLT^ Stop the program
PROGRAM FOR “ OR” LOGIC
ADDRESS OPCODE LABEL MNEMONICS COMMENT
8000 MOV AL,05 Move data 05 to AL register
8003 MOV BL,04 Move data 04 to BL register
(^8007) ORI BL OR Operation
800D MOV #9000,BL Result store in 9000 address
800B HLT Stop the program
EX. NO: 06
DATE :
MOVE A DATA BLOCK WITHOUT OVERLAP
AIM:
To move a data block without overlap
APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1
ALGORITHM:
Initialize the memory location to the data pointer.
Increment B register.
Increment accumulator by 1 and adjust it to decimal every time.
Compare the given decimal number with accumulator value.
When both match, the equivalent hexadecimal value is in B register.
Store the resultant in memory location.
PROGRAM:
ADDRESS OPCODES PROGRAM COMMENTS
1000 MOV^ CL,^05 Get the Data range
1002 MOV^ SI,^1400 Get the first data.
1005 MOV^ DI,^1450 Get the second data.
1008 LD^ DSB^
Store the lower order product 1009 MOV [DI], AL Store the result
100B INC^ DI^ Increment the pointer.
100C DEC^1008 Dec Counter 0
1010 INT^3 Stop the program
OUTPUT:
INPUT OUTPUT
RESULT:
Thus the output for the Move a data block without overlap was executed
successfully.