On Tue, 2007-03-06 at 10:01 -0800, picnoob wrote: > hi, i need a way to seperate a number, say 54. and put 5 in a register called > tens, and 4 in another called units. > > is there some binary operation to do this, or will it have to be a custom > subroutine? > > i need this kinda fast, can someone help? Search for "hex to bcd", tons of options out there. TTYL -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist