Professional Documents
Culture Documents
Exp - No: 16-Bit Subtraction Date: Aim
Exp - No: 16-Bit Subtraction Date: Aim
AIM:
To learn to write an assembly language program for subtracting two sixteen bit numbers
APPARATUS REQUIRED:
8085 Microprocessor kit,
Power supply
ALGORITHM:
FLOWCHART:
START
Get the2ndnumber
If
Borrow
=1
Store
Storethe
theborrow
carry
STOP
PROGRAM:
MANUAL CALCULATION:
DATA 1= 6A 19 H
DATA 2 =5C 15 H (-)
SUM = 0E 04 H
ADDRESS DATA
Input
4300 19 H (LSB OF DATA 1)
4301 6A H (MSB OF DATA 1)
4302 15 H (LSB OF DATA 2)
4303 5C H (MSB OF DATA 2)
Output
4304 04 H (LSB OF SUM)
4305 0E H (MSB OF SUM)
RESULT:
Thus the subtraction of two 16-bit numbers using assembly language program is performed
and the output is verified.