----- Original Message ----- From: "Olin Lathrop" To: Sent: Saturday, December 21, 2002 10:04 AM Subject: Re: [PIC]: Divide 24/8 routine > > I'm trying to port the division routine at message > > > http://www.piclist.org/techref/postbot.asp?by=time&id=piclist\1996\11\08\1 > 54933a > > to CCS-PCH but it's not working. > > I'm probably going to get the usual flak for this, but this is exactly the > kind of low level routine that should be done in assembler, even if you > normally write most of the code in a higher level language. This is > especially true since you are asking for an "optimized" routine. 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). Bob Ammerman RAm Systems -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body