please dont rip this site

PIC Microcontoller Math Method

Small Fast 8 Bit Square Root

;Author: Nikolai Golovchenko <golovchenko at>
;Idea: Scott Dattalo <>
;"Hint: n^2 = sum of the first n odd integers.(e.g 9 = 3*3 = 1 + 3 + 5)"
;Date: February 16, 2000
;Input and output in ACCB0
;ROM - 9
;RAM - 1
;Timing - 12..87 cycles including call and return
        movlw -1
        addlw 2
        subwf ACCB0, f
         goto Sqrt8s1
        movwf ACCB0
;       decf ACCB0, f
;Dmitry Kiryashov says: Since W is always holding odd value this decf 
; isn't required I guess. ...  W is always 1,3,5,7,9,.. right?
;and Scott Dattalo aggrees.
        rrf ACCB0, f

file: /Techref/microchip/math/sqrt/sqrt8ngsd.htm, 1KB, , updated: 2000/2/17 11:49, local time: 2024/7/18 18:48,

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> PIC Microcontoller Math Method </A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?


Welcome to!


Welcome to!