please dont rip this site

SX Microcontroller Math Method

8 Bit Square Root

by Nikolai Golovchenko

;**********************************************************************
;by Nikolai Golovchenko
;8 bit SQARE ROOT
;ACCB0 input/output
;TEMPB0, TEMPB1 used for temporary storage
;3+16*4-2+5=70 cycles execution time
;20 words of program memory
;3 bytes of RAM
;**********************************************************************
Sqrt8
	mov	W, #$40
	mov	TEMPB1, W
	clr	TEMPB0
sqrt8a
	mov	W, TEMPB1
	or	W, TEMPB0
	mov	W, ACCB0-w
	snb	C
	mov	ACCB0, W
	rr	TEMPB0
	mov	W, TEMPB1
	snb	TEMPB0.7
	or	TEMPB0, W
	clrb	TEMPB0.7
	rr	TEMPB1
	rr	TEMPB1
	sb	TEMPB1.7
	jmp	sqrt8a
	mov	W, TEMPB0
	mov	ACCB0, W
	ret
;**********************************************************************
;Last updated 15Nov99


file: /Techref/scenix/lib/math/sqrt/sqrt8_sx.htm, 1KB, , updated: 2004/6/10 13:40, local time: 2024/11/5 13:37, owner: NG--944,
TOP NEW HELP FIND: 
18.222.166.151: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/sqrt8_sx.htm"> SX Microcontroller Math Method 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.
 

Welcome to sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .