Is binary HEX?

This is a discussion on Is binary HEX? within the Tech Board forums, part of the Community Boards category; My friend thinks so, sence he opened all of his .exe's with a hex editor in binary mode and then ...

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    41

    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?
    THERE IS NO PLACE LIKE 127.0.0.1

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    You're both wrong. EXEs are wrtten in machine language.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    254
    Is binary HEX?
    binary = base 2 numbering system
    hexadecimal= base 16 numbering system

  4. #4
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    hex is a shorthand way of writing binary. I think machine language is binary... that's all a CPU can process...
    Last edited by major_small; 11-18-2003 at 07:33 PM.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,662
    Look up on machine code, binary and hexadecimal.

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

  6. #6
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    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. #7
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    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
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  8. #8
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    wow...your friend is L337!
    PHP and XML
    Let's talk about SAX

  9. #9
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    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. #10
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    >>and has no impact on my intelligence.
    You're right. It just has an impact on our perception of your intelligence.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  11. #11
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    >>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.
    PHP and XML
    Let's talk about SAX

  12. #12
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    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 subscribe to a feed

Similar Threads

  1. Memo Box to Binary
    By peckitt99 in forum C++ Programming
    Replies: 8
    Last Post: 11-14-2007, 04:22 PM
  2. Replies: 11
    Last Post: 03-24-2006, 10:26 AM
  3. Printing Hex as Binary
    By Mystic_Skies in forum C Programming
    Replies: 6
    Last Post: 11-22-2004, 03:18 PM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21