- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
8086 program to find Square Root of a number
In this program we will see how to find the square root of a number.
Problem Statement
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.
Discussion
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.
Input
Address | Data |
---|---|
… | … |
500 | 90 |
… | … |
Flow Diagram
Program
Output
Address | Data |
---|---|
… | … |
600 | 90 |
… | … |
- Related Articles
- 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
- 8086 program to find sum of digits of 8 bit number
- Find the square root of the given decimal number:$75.69$.
- Find the square root of the given decimal number:$0.0625$.
- Find the square root of the given decimal number:$0.002401$.
- Find the square root of the given decimal number:$0.017424$.
- How to calculate square root of a number in Python?
- Java program to find the cube root of a given number
- 8086 program to search a number in a string
- Find the smallest number by which 1458 should be multiplied so as to get a perfect square. Also, find the square root of the square number obtained.
- Find the smallest number by which 180 should be multiplied so as to get a perfect square. Also, find the square root of the square number obtained.
- 8085 program to find square of a 8 bit number

Advertisements