| | BCD -- Technical Notes (Site not responding. Last check: 2007-10-28) |
 | | To pack a two-byte unpacked BCD number into a single byte creating a packed BCD number, shift the upper byte left four times, then OR the results with the lower byte. |
 | | From Binary to Unpacked BCD: To convert a binary number into an unpacked BCD, divide the binary number by decimal 10 and place the quotient in the most significant byte and the remainder in the least significant byte. |
 | | Before dividing an unpacked BCD number, the division adjustment is made by converting the BCD numbers to binary. |
| www.evergreen.edu /biophysics/technotes/program/bcd.htm (641 words) |