- Related Questions & Answers
- 8086 program to find the square root of a perfect square root number
- 8085 program to find square root of a number
- Java program to find the square root of a given number
- 8086 program to find the factorial of a number
- How to calculate square root of a number in Python?
- Babylonian method to find the square root
- How to get the square root of a number in JavaScript?
- 8085 program to find square of a 8 bit number
- Get square root of a number using Math.sqrt in Java
- Java program to find the cube root of a given number
- How to find Square root of complex numbers in Python?
- 8086 program to find sum of digits of 8 bit number
- How to find the root mean square of a vector in R?
- Find square root of number upto given precision using binary search in C++
- Finding square root of a number without using library functions - JavaScript

- 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 square root of a number.

Write 8086 Assembly language program to find the square root of a number. The number is stored at memory offset 500. Finally store the result at memory offset 600.

To find the square root here at first we are clearing the counter register. In each iteration we are increasing BX register by 2. At first we need BX = 0001. So we are initializing it to FFFFH, after adding 2, it will be 0001H. In each iteration the counter value is increased, and subtract the BX value from AX, until the AX is 0, the loop will run.

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

… | … |

500 | 90 |

… | … |

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

… | … |

600 | 90 |

… | … |

Advertisements