- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
8085 program to multiply two 8 bit numbers using logical instructions
In this program we will see how to multiply using logical operators.
Problem Statement
Write 8085 Assembly language program to multiply two 8-bit numbers using logical operators.
Discussion
We are assuming the first number is in register B, and second number is in register C, and the result must not have any carry.
Here we are multiplying with 04H. We can perform the multiplication by left rotate two times. Assign 06H into B, and 04H into C. Load B to A, then rotate the accumulator two times. Store the result into a specified memory.
Input
Register | Data |
---|---|
B | 06 |
C | 04 |
Flow Diagram
Program
Address | HEX Codes | Labels | Mnemonics | Comments |
---|---|---|---|---|
F000 | 06, 06 | | MVI B,06H | |
F002 | 0E, 04 | | MVI C,04H | |
F004 | 78 | | MOV A,B | Load B to A |
F005 | 07 | | RLC | Rotate left without carry |
F006 | 07 | | RLC | Rotate left without carry |
F007 | 32, 00, 80 | | STA 8000H | Store result into 8000H |
F00A | 76 | | HLT | Terminate the program |
Output
Address | Data |
---|---|
8000 | 18 |
- Related Articles
- 8085 program to multiply two 8 bit numbers
- 8085 Program to multiply two 8-bit numbers (shift and add method)
- 8085 Program to multiply two 16-bit binary numbers
- 8051 Program to Multiply two 8 Bit numbers
- 8086 program to multiply two 8-bit numbers
- Program to multiply two 8-bit numbers (shift and add method) in 8085 Microprocessor
- 8085 Program to Add two 8 Bit numbers
- 8085 Program to Subtract two 8 Bit numbers
- 8085 Program to Divide two 8 Bit numbers
- 8085 program to swap two 8-bit numbers
- 8085 Program to Multiply two 8 bits numbers
- Program to multiply two 16-bit binary numbers in 8085 Microprocessor
- 8085 program to swap two 8 bit numbers using Direct addressing mode
- Program to Multiply two 8 Bit numbers in 8051 Microprocessor
- 8085 program to find larger of two 8 bit numbers

Advertisements