I've been trying to port the PIC16x math library to PIC18x with little success. Among other things, it's not obvious to me exactly how to modify MATH16.INC to suit the PIC18. Perhaps I should just declare all the variables in a CBLOCK, but I'm avoiding using a C compiler as the rest of my code is in assembly. All help appreciated! Regards Matt -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist