please dont rip this site

SX Microcontroller Math Method

Small 8 Bit Square Root

by Nikolai Golovchenko

;**********************************************************************
;SMALL 8 BIT SQUARE ROOT
;
;Author: Nikolai Golovchenko <golovchenko at mail.ru>
;Idea: Scott Dattalo <www.dattalo.com>
;"Hint: n^2 = sum of the first n odd integers.(e.g 9 = 3*3 = 1 + 3 + 5)"
;Date: February 16, 2000
;
;Input: x
;Output: y
;ROM - 10
;RAM - 2
;Timing, including call and return
;Best case: 6+9=15 cycles
;Worst case: 6+2+8*16-2+1=135 cycles
;**********************************************************************
Sqrt8s
        mov     W, #-1
        mov     y, W
Sqrt8s1
        inc     y
        inc     y
        mov     W, y
        sub     x, W
        snb     C
        jmp     Sqrt8s1
        rr      y
        ret
;**********************************************************************

See:


file: /Techref/scenix/lib/math/sqrt/sqrt8ngsd_sx.htm, 1KB, , updated: 2004/6/10 13:40, local time: 2024/11/5 13:43, owner: NG--944,
TOP NEW HELP FIND: 
3.144.15.205:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©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="http://sxlist.com/techref/scenix/lib/math/sqrt/sqrt8ngsd_sx.htm"> SX Microcontroller Math Method - Small 8 Bit Square Root</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 sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 
Quick, Easy and CHEAP! RCL-1 RS232 Level Converter in a DB9 backshell
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .