- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- 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 find the factorial of a number.

Write 8086 Assembly language program to find the factorial of a number stored in memory offset 500. Store the result at 600 and 601 memory offset.

To find the factorial of a number n we have to repeatedly multiply the numbers from 1 to n. We can do the same by multiplying the number and decrease it until it reaches 1. So the sequence will be

In this program we are taking the number into counter register then decrease it and multiply, If the result exceeds the range of 16-bit, the 32-bit result can be found in register DX and AX. After that we are storing the result into memory offset 600 and 601.

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

… | … |

500 | 06 |

… | … |

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

… | … |

600 | D0 |

601 | 02 |

… | … |

- Related Questions & Answers
- 8085 program to find the factorial of a number
- Java Program to Find Factorial of a number
- 8086 program to find Square Root of a number
- Python program to find factorial of a large number
- Python Program to find the factorial of a number without recursion
- C++ Program to Find Factorial of a Number using Iteration
- C++ Program to Find Factorial of a Number using Recursion
- Java Program to Find Factorial of a Number Using Recursion
- Java program to find the factorial of a given number using recursion
- 8086 program to find the square root of a perfect square root number
- C++ Program to Find Factorial of a Number using Dynamic Programming
- C++ program to find first digit in factorial of a number
- How to Find the Factorial of a Number using Python?
- Write a Golang program to find the factorial of a given number (Using Recursion)
- 8086 program to find sum of digits of 8 bit number

Advertisements