Professional Documents
Culture Documents
AIM:
To write an assembly language program for subtracting two eight bit numbers using 8085
processor.
APPARATUS REQUIRED:
8085 Microprocessor kit,
Power supply
ALGORITHM:
Get data in Accumulator at specified memory location
Store the data in B register
Get next data in Accumulator register
6.Add the contents of A register with B register
Store the result
Terminate the program
FLOW CHART:
Start
Subtract the
values
Store result
Stop
PROGRAM:
MANUAL CALCULATION:
ADDRESS DATA
Input:
4150H 70H
4151H 20H
Output:
4152H 50H
RESULT:
Subtraction of two 8-bit numbers using 8085 is performed and the output is verified.