Can anyone point me to a packed to unpacked BCD conversion and/or an unpacked to packed BCD conversion. Thanks.

Unpacked BCD - one decimal digit per byte in the lower nibble
Packed BCD - two decimal digits per byte in the upper and lower nibbles.
Posted on 2003-07-03 13:46:49 by V Coder


MOV AX,0109H ; unpacked bcd ->hex
AAD

MOV AX,51H ; hex -> unpacked bcd
AAM
Posted on 2003-07-03 13:55:59 by wizzra
Thanks much... I'll have a quick look at that!
Posted on 2003-07-03 14:15:54 by V Coder