Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Assembly Language code for square root determination

Status
Not open for further replies.

ivar4ever

Full Member level 3
Joined
Jun 12, 2006
Messages
189
Helped
25
Reputation
52
Reaction score
5
Trophy points
1,298
Location
India
Activity points
2,437
squareroot determination

this was asked in an interview:
"Write the assembly code for finding the square root of a number"

whats the answer :|
 

square root assembly language

This is not an easy thing to do, and I don't think it was fair to be asked that during an interview.
Anyway, take a look at this appnote that contains some info for SQRT in floating point. https://ww1.microchip.com/downloads/en/AppNotes/00660.pdf
You can adapt it to other micros.
 
As I know there are ways to do it with basic math operations, but that is not easy at all. That is not a question for an interview...
 

ivar4ever,
I agree that this is not an appropriate question for an interview. Having said that, what's the target machine? Assembly languages are unique for each machine family.
Regards,
Kral
 

FIGUE said:
Here is your answer:

h**p://www.azillionmonkeys.com/qed/sqroot.html


thats true, but it is not at all easy to implement in assembly language :cry:
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top