- Related Questions & Answers
- 8085 program to multiply two 8 bit numbers
- 8051 Program to Multiply two 8 Bit numbers
- 8086 program to multiply two 8-bit numbers
- 8085 Program to multiply two 8-bit numbers (shift and add method)
- 8085 Program to Multiply two 8 bits numbers
- 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 16-bit binary numbers
- Program to Multiply two 8 Bit numbers in 8051 Microprocessor
- Program to multiply two 8-bit numbers (shift and add method) in 8085 Microprocessor
- 8085 Program to Multiply two numbers of size 8 bits
- 8085 program to find larger of two 8 bit numbers
- 8085 program to find maximum of two 8 bit numbers

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

In this program we will see how to multiply using logical operators.

Write 8085 Assembly language program to multiply two 8-bit numbers using logical operators.

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.

Register | Data |
---|---|

B | 06 |

C | 04 |

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 |

Address | Data |
---|---|

8000 | 18 |

Advertisements