# Thread: Is binary HEX?

1. ## Is binary HEX?

My friend thinks so, sence he opened all of his .exe's with a hex editor in binary mode and then he said "Everythings in HEX dolt, no isn't such this as binary! It's all HEX! Your computer is made out of HEX! Windows, Linux, Mac are ALL made out of HEX not binary idiot :-p

Go ask anyone! they'll say that all OS's are programed the same way and that way is HEX!!!"

So I ask you, it's this 011000100110100101101110011000010111001001111001? Or is it made up?

2. You're both wrong. EXEs are wrtten in machine language.

3. Is binary HEX?
binary = base 2 numbering system
hexadecimal= base 16 numbering system

4. hex is a shorthand way of writing binary. I think machine language is binary... that's all a CPU can process...

5. Look up on machine code, binary and hexadecimal.

So as was mentioned, you're both correct, to some extent.

6. Originally posted by XSquared
You're both wrong. EXEs are wrtten in machine language.
smooth.

machine language is all binary. Your processor is nothing but a bunch of transistors, which are nothing but a bunch of switches. And what do switches understand? On and off. Hence, 1 and 0. Therefore, every OS, every program, every piece of data is eventually broken down into bits (aka binary). Hex, as mentioned before is "shorthand" for binary.

Examples:

01 = 1
10 = 2
11 = 3
101 = 5
111 = 7
1000 = 8 (in most cases)
1101 = 13, which in HEX is D.

Hence, your friend was somewhat right, but in reality not even hardcore programmers write in HEX or binary. Even assembly language, the user compiles the code into binary (aka machine language).

But yes, if you open an exe in a Hex editor, you're going to see memory mappings full of 0-9 and A-F. (ie. Hex)

7. i doubt you'll really ever see pure binary... there's just too many 1's and 0's... for example, memory address 0xFFFF translates to 1111111111111111 in binary... which is 65535 in decimal, which is off the ASCII chart... here's another example:

ASCII = decimal = binary = hex

'A' = 65 = 10000001 = 0x0041

8. wow...your friend is L337!

9. Computers don't use boolean algebra to manipulate numbers, you idiot, they crunch numbers! Hex editors don't use hexadecimal either, they use base 16 math!

Stupid n00b!

PS: That was an exaggeration and has no impact on my intelligence.

10. >>and has no impact on my intelligence.
You're right. It just has an impact on our perception of your intelligence.

11. >>Or is it made up?

I just caught that...strikes me funny that you'd even consider the possibility that a billion programmers have been lying for 50 years and that your friend is the only correct person on the planet...geez, can't you think for yourself? The BS-O-Meter should be off the charts at that point.

12. You're right. It just has an impact on our perception of your intelligence.
Man, you're smooth. I envy you.

Popular pages Recent additions