Z, why not use a 24/8 and ignore the result high byte http://www.piclist.com/techref/microchip/math/div/24by8-jah.htm ;Unsigned 24 bit by 8 bit divide routine ; ; Inputs: ; Dividend - x,x+1,x+2 (x+2 - most significant!) ; Divisor - y ; Temporary: ; Counter - counter ; Output: ; Quotient - x,x+1,x+2 (x+2 - most significant!) ; Remainder - x+3 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist