BCD Encoding?
Randy Spangler
rspangle at jarthur.Claremont.EDU
Wed Apr 11 09:52:06 AEST 1990
Microsoft Macro Assembler 5.2 manual gives the following:
Packed BCD numbers are stored 2 digits to a byte, with one digit in the
lower 4 bits and one in the upper 4 bits
Unpacked BCD numbers are stored one digit to a byte, in the last 4 bits.
The sign is in the leftmost bit (0 is +, 1 is -).
--
--------------------------------------------------------------------------
| Randy Spangler | The less things change, the |
| rspangle at jarthur.claremont.edu | more they remain the same |
--------------------------------------------------------------------------
More information about the Comp.lang.c
mailing list