

- 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
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 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?
- How to get the square root of a number in JavaScript?
- Babylonian method to find the square root
- Get square root of a number using Math.sqrt in Java
- 8085 program to find square of a 8 bit number
- Java program to find the cube root of a given number
- 8086 program to find sum of digits of 8 bit number
- How to find Square root of complex numbers in Python?
- Finding square root of a number without using library functions - JavaScript
- Finding square root of a number without using Math.sqrt() in JavaScript
- How to find the root mean square of a vector in R?
Advertisements