ATMEL 89C51 PROGRAMMING need ur help

Discussion in 'Programmer's Corner' started by arikrishnan, Mar 28, 2007.

  1. arikrishnan

    Thread Starter New Member

    Mar 7, 2007
    5
    0
    sir,


    for programming we use "h" to refer hexadecimal number.for example

    MOV R2,#0FFH .

    similarlly what is used 2 refer decimal number.? is it necessary to initialise the use of decimal in ATMEL89C51 programming.

    MOV R3,#00D

    what is the meaning of the D used in above programme.

    please reply as soon as possible

    please reply to my mail id arikrishnan_t@yahoo.com
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,163
    1,797
    If the assembler supports it, the "D" stands for decimal. Decimal is the default radix in most assemblers which is why the suffix H is required. Assemblers often have a "radix" pseudo operation to change the default radix. Which assembler are you using?
     
  3. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    One must imagine that 00D = 00H, & 00B, not to mention 00O.
     
  4. Papabravo

    Expert

    Feb 24, 2006
    10,163
    1,797
    Truly, you have a dizzying intellect. I'm in awe.
     
  5. arikrishnan

    Thread Starter New Member

    Mar 7, 2007
    5
    0
    thanks 4 ur reply. did the ATMEL89C51 microcontroller accepts this type of code ("d" for decimal). do u have any sample programme for the same type . please send me
     
  6. Papabravo

    Expert

    Feb 24, 2006
    10,163
    1,797
    The IAR assembler, that I have, does not appear to accept the D suffix on an integer constant.
     
Loading...