Square root of an 8 bit number in 8085
AIM
To prepare an assembly language program to find the square root of an 8 bit number for 8085 microprocessor
PROGRAM
MVI C,01
MVI E,01
LDA 4200
LABEL:SUBB C
JZ LABEL1
INR C
INR C
INR E
JMP LABEL
LABEL1:MOV A,E
STA 4201
HLT
SAMPLE OUTPUT
|
ADDRESS |
DATA |
INPUT/OUTPUT |
|
4200 |
10 |
Input |
|
4201 |
04 |
Output |
RESULT
A program to find the square root of a number was prepared and output obtained
You may also like:
Custom Search

give the process how its runs in the in processor
how to find the cube root of a number using 8085????
this only works for perfect square roots.e.g 4,9,16 etc
wht if the no is not a perfect root.e.g 18.how to find its decimal portion?
What is “SUBB” ??
Is that a command in 8085 ?
plz give me its algorothm ……
i will add it soon.