9:47 AM
Write a program to subtract two 16-bit numbers using 8085 Microprocessor kit in assembly language
Aim: Perform the following using 8085 Microprocessor kit in assembly language.
i. Write a program to add two 16-bit numbers.
ii. Write a program to subtract two 16-bit numbers.
iii. Write a program to multiply two 8 bit numbers by rotation method.
 
Requirements: 8085 Microprocessor kit
 
Learning Objectives: Use of 8085 Kit to perform basic assembly programs.
 
Outline of the Procedure:
1. Turn of the kit
2. Enter the code in assembly language.
3. Execute the code and verify the results.
 
Program:
Address      Machine Code    Mnemonics Operands Comments
 
2007            21            LXI H, 2000h
2008            00
2009            20
200A            7E            MOV A,M
200B            23            INX H
200C            96            SUB M
200D            32            STA 2004h
200E            04
200F            20
2010            23            INX H
2011            7E            MOV A,M
2012            23            INX H
2013            9E            SBB M
2014            32            STA 2005h
2015            05
2016            20
2017            3E            MVI A, 00h
2018            00
2019            17            RAL
201A            32            STA 2006h
201B            06
201C            20
201D            EF            RST5
Views: 74 | Added by: vijoriya | Tags: 8085 Microprocessor, Assembly language, Kit, subtract, two 16 bit numbers, Write a program | Rating: 0.0/0
Total comments: 0
avatar