plz help

Thread Starter

alitex

Joined Mar 5, 2007
139
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
 

beenthere

Joined Apr 20, 2004
15,819
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.
 

Papabravo

Joined Feb 24, 2006
21,227
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.
 
Top