plz help

Discussion in 'Homework Help' started by alitex, Nov 4, 2007.

  1. alitex

    Thread Starter Active Member

    Mar 5, 2007
    122
    0
    hi
    can u help me in "hexadecimal to binary algorithm"
    i mean when we convert program in assemply language to microcontroller chip
    plz help
    thank u in advance
     
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Take a look at the material in the AAC ebook on the topic of numerical systems.

    hgmjr
     
  3. alitex

    Thread Starter Active Member

    Mar 5, 2007
    122
    0
    i mean how conversion happen with file only,not traditional method that we know it.....
     
  4. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Hexidecimal is binary, with the bits grouped in fours.

    If I understand you, your concern is with the conversion from the numbers in the assembler file to the binary equivalent. The assembler file will be a string of ASCII characters plus spaces and punctuation. It is the job of the assembler to parse the ASCII string and successfully assign the inputs to something meaningful as far as the assembler is concerned.
     
  5. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,790
    Using a lookup table is a time honored technique.
    Nested if-elseif-else constructs also works.
    The switch or case statement is equivalent to both.

    That's three different ways -- I'm sure there are more.
     
Loading...