This my sound like a bit of a noob question, but it has always occured to me. On screen, we get hexadecimal code, but the processor doesnt understand that right? So, if I make a program in Hex, would I have to compile it, I understnad that Hex is shorthand binary, but would I?
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Hex Or Binary
Started by Hakkera, Sep 27 2006 08:57 PM
4 replies to this topic
#3
Posted 27 September 2006 - 10:50 PM
Quote
This my sound like a bit of a noob question, but it has always occured to me. On screen, we get hexadecimal code, but the processor doesnt understand that right? So, if I make a program in Hex, would I have to compile it, I understnad that Hex is shorthand binary, but would I?
I don't quite understand what you mean by 'Hexadecimal Code'. Can you elaborate? I should be able to answer your question, I've been writing in assembly for 3 years. If your talking about data, such as:
Somedata db 0FFh
Then that will be turned into binary when it compiles. Or if you mean you are writing a program totally in Hex, that will work too. The compiler will convert that into code that the computer can understand.
Also,
Quote
(1 byte= 2 hexes = 256 binary bits)
The above is wrong. 1 byte consists of 8 bits, thus making 256 possible characters.
#5
Posted 17 March 2010 - 07:26 PM
Hakkera, on Sep 27 2006, 09:57 PM, said:
This my sound like a bit of a noob question, but it has always occured to me. On screen, we get hexadecimal code, but the processor doesnt understand that right? So, if I make a program in Hex, would I have to compile it, I understnad that Hex is shorthand binary, but would I?
Come to think of it, I can already convert hex to bin on sight e.g F is 1111 so now all I have to do is memorize the hex form of assembly instructions. The fun is just about to start. Yippee.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














