Home » Embedded Systems

Multiplication of two 8 bits numbers using 8085 microprocessor with carry

Here, we are going to learn how to find Multiplication of two 8 bits numbers using 8085 microprocessor with carry?
Submitted by Raju Singh Bhati, on October 19, 2018

Problem statement:

Multiplication of two 8 bits numbers using 8085 microprocessor with carry.

Algorithm:

  1. Load HL pair with initial data using LHLD command.
  2. Exchange the data of HL and DE pair using XCHG command.
  3. Copy the data of register D into Register C.
  4. Now initialize register D with 0.
  5. Also initialize HL pair with 0 using LXI command.
  6. Use the DAD command to add the data of DE pair into the data of HL pair and store in HL Pair.
  7. Decrease the value of C by one.
  8. Check if the result from previous instruction resets the zero flag and if true, jump to address XXX.
  9. Store the content of the HL pair into desired location.
  10. Stop.

Program:

	LHLD 2050	
	XCHG		
	MOV C, D	
	MVI D 00	
	LXI H 0000	
xxx	DAD D		
	DCR C		
	JNZ 200A	
	SHLD 3050	
	HLT

Observation:

    INPUT: 
    2050:43
    2051:07

    OUTPUT: 
    3050:D5
    3051:01

Hence successfully multiplied two 8 bits numbers with carry using 8085 microprocessor..






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.