Good day to all. Has anyone seen or had to come up with a technique to divide a 6 digit packed BCD number by 2? The approach I am taking is to split each packed BCD digit into separate registers and deal with each digit on its own. Starting at the LS digit, I right shift once (/2), then check to see if the next higher BCD digit is odd. If it is even, I'm done with this digit. If it is odd, I decrement that digit and add 5 to the digit I am currently working with. I repeat until all digits are done. I feel there has to be a better way. Any thoughts? dwayne Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 17 years of Engineering Innovation (1984 - 2001) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu