Problem with DT and BCD Numbers

From: Johnny Hex (Nobody_at_home.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 02:34:30 GMT

Newbie here using MASM 6.11.

Learning about BCD numbers and having problems with creating "good"

BCD numbers with either DT or TBYTE.

Example:

BCDNum DT 123456789 ; Getting 000000000000075BCD15

;instead of 89 67 45 23 01 00 00 00 00 00.

I'm sure this is a common question so if there is a FAQ that answers this,

please point me to it. Thank you very much!

Chris



Relevant Pages

  • Re: Problem with DT and BCD Numbers
    ... > Newbie here using MASM 6.11. ... > BCD numbers with either DT or TBYTE. ... > I'm sure this is a common question so if there is a FAQ that answers this, ...
    (alt.lang.asm)
  • Problem with DT and BCD Numbers
    ... Newbie here using MASM 6.11. ... Learning about BCD numbers and having problems with creating "good" ... BCD numbers with either DT or TBYTE. ...
    (comp.lang.asm.x86)
  • Re: Problem with DT and BCD Numbers
    ... > BCD numbers with either DT or TBYTE. ... > I'm sure this is a common question so if there is a FAQ that answers this, ... BCD numbers are 4 bit wide numbers, ... So, if you want packed bcd constants, write them as hexadecimal ones. ...
    (comp.lang.asm.x86)