I just wrote (although I should really know better): > Since the code is known to work (I wouldn't have put it on my web page > if it didn't), the problem must be elsewhere. Just noticed an error in the code posted to my web page: There's an "INCFSZ DIVISORHI" near the end of it; that line should read "INCFSZ DIVISORHI,W". Even WITH the error, though, the code produces the correct result when given the particular inputs you were using (dividend = 0x0808, divisor = 0x0404), so I still suspect that there's a radix issue in your implementation. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics