On Tue, 2007-03-06 at 12:18 -0600, PAUL James wrote: > Sir, > > I would "AND" the number '54' with 0x0F. This will give you '4'. Store > it in it's destination register, whatever tht may be. Then do a SWPAF > and "AND" it again with 0x0F. This will give you the '5'. Store it > In it's destination register. Now you're done. That's only if you want hex 0x54 printed as 5 and 4. There's nothing wrong with that, but in my mind it's likely the op was speaking of decimal 54, which in hex is 0x36. TTYL -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist