1. prejval2006

    Thread Starter Member

    Oct 25, 2006
    21
    0
    in 8051 microcontroller if we write
    mov a,#10 (without specifying the datatype)
    what will microcontroller accept it as ...... it except it as hex or decimal
     
  2. mik3ca

    Active Member

    Feb 11, 2007
    189
    0
    I think that hex is by default. I'm not sure, but there is an excellent resource that walks you through an 8052 (which is an extensive version of an 8051).

    go to http://www.8052.com
     
  3. Arm_n_Legs

    Active Member

    Mar 7, 2007
    183
    10
    I think the default depends on the assembler you are using. Mine is decimal. I am using Keil.
     
  4. Papabravo

    Expert

    Feb 24, 2006
    10,144
    1,790
    Over all the assemblers I've ever seen, besides all the ones I haven't --decimal is the more likely default radix.
     
Loading...