Professional Documents
Culture Documents
02
TOTAL: 45 PERIODS
OUTCOMES:
At the end of the course, the student should be able to:
Write ALP Programmes for fixed and Floating Point and Arithmetic
Interface different I/Os with processor
Generate waveforms using Microprocessors
Execute Programs in 8051
Explain the difference between simulator and Emulator
1
DOC/LM/01/28.02.02
1.1 AIM:
To perform the following arithmetic operations on 8 bit binary (hex) data using 8085 kit.
a) Addition
b) Subtraction
c) Multiplication
d) Division
ALGORITHM:
1. Declare the segments and clear the registers which are used.
2. Load the data in two variables.
3. Move the data to the registers.
4. Add the contents of the registers and check for the carry.
5. Store the result & carry in the memory location and display the contents of the memory
location Halt
1. Declare the segments and clear the registers which are used.
2. Load the data in two variables.
3. Move the data to the registers.
4. Subtract the contents of the registers and check for borrow.
5. Store the result & borrow in the memory location and display the contents of the memory
location and halt
1. Declare the segments and clear the registers which are used.
2. Load the data in two variables.
3. Move the data to the registers.
2
DOC/LM/01/28.02.02
1. Declare the segments and clear the registers which are used.
2. Load the data in two variables.
3. Move the data to the registers.
4. Clear the quotient and remainder
5. Read data and if dividend is zero then set the result as zero and go to step 8.
6. Read data and if divisor is zero the print divide by zero error and go to step 10.
7. Perform dividend / divisor.
8. Store the quotient and the reminder.
9. Display the quotient and reminder .Halt
3
DOC/LM/01/28.02.02
4
DOC/LM/01/28.02.02
5
DOC/LM/01/28.02.02
RESULT:
Thus 8085 ALP to perform arithmetic operations like addition, subtraction, multiplication
& division on 8 bit binary (hex) data was executed using 8085 kit.
6
DOC/LM/01/28.02.02
1.2 .AIM :
To perform the following basic logical operations on 8 bit binary (hex) data using 8085 kit.
a) Logical OR
b) Logical AND
c) Logical XOR
d) Logical NOT
PROGRAM TO PERFORM BASIC LOGICAL AND OPERATION
7
DOC/LM/01/28.02.02
8
DOC/LM/01/28.02.02
AIM:
To move a data block from source to destination without overlap using 8085 kit.
ALGORITHM :
1. Start.
2. Load the accumulator with no. Of elements as input.
3. Move the content of A to C register.
4. Load the desired inputs to HL register.
5. Load the desired inputs to DE register.
6. Load the inputs through the accumulator.
7. Store the contents of A in DE register.
8. Increment HL,DE register.
9. Decrement C register.
10. Repeat the steps.
11. Stop the program.
PROGRAM:
9
DOC/LM/01/28.02.02
RESULT:
Thus an 8085 ALP to move a block of data bytes from source to destiantion was
executed in 8085 kit.
10