piclist 2002\12\21\180444a >
Thread: Divide 24/8 routine
www.piclist.com/techref/microchip/math/index.htm?key=divide
picon face BY : Spehro Pefhany email (remove spam text)



At 10:22 AM 12/21/02 -0500, you wrote:


>No flak from me, you are exactly on. But perhaps what the OP really needs to
>know is how to take the assembly code and embed it in a C function using
>inline assembly, or how to set it up to be linked in with and callable by
>the C code. (None of which I can help with - I know nearly nothing about
>CCS).

I did something "hybrid" recently to get 16 x 16 -> 32 unsigned multiply,
by hacking some inline asm code into a C routine, and it was reasonably
efficient and (more importantly, as otherwise I could have used longs)
very compact. Can't share it, unfortunately. It could be broken by a future
version of the compiler, however it's very unlikely IMHO.

Best regards,

Spehro Pefhany --"it's the network..."            "The Journey is the reward"
spamspeff.....spam.....interlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservRemoveMEspamRemoveMEmitvma.mit.edu with SET PICList DIGEST in the body
<5.1.1.6.2.20021221180147.0220a4c0@mail.interlog.com>

In reply to: <00cb01c2a904$d668a220$5800a8c0@DELL8100>
See also: www.piclist.com/techref/microchip/math/index.htm?key=divide
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Divide 24/8 routine

month overview.

new search...