Jul 25, 2008

Hex Or Binary

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Assembler and Delphi

free web hosting

Hex Or Binary

Hakkera
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?


Reply

osknockout
Lol, we're all noobs sometime. laugh.gif
You wouldn't have to compile it.
You'd just have to find a way to save it in that format, like through a hexadecimal editor,
because normally data is saved in bytes (1 byte= 2 hexes = 256 binary bits)

Reply

ghostrider
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:

CODE

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.

 

 

 


Reply

osknockout
QUOTE
The above is wrong. 1 byte consists of 8 bits, thus making 256 possible characters.

Ah! Sorry about that. Heh, you'd think after programming in Z80 assembly for 4 years
you'd get that down. laugh.gif Anyway, ghostrider's right.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : hex, binary

  1. Data Structure -- Trees -- Threaded Binary Tree
    (0)
  2. Data Structures -- Binary Tree -- Structurally Same
    Find if 2 binary tress are structurally same?? (4)
    Given two binary trees, find out whether a tree is structurally same to the other. Structurally same
    means that the two trees look alike or a tree looks alike a subtree of the other tree. Look for
    time and space complexity. Some more for readers What is a binary tree? QUOTE A binary
    tree is made of nodes, where each node contains a "left" pointer, a "right" pointer, and a data
    element. The "root" pointer points to the topmost node in the tree. The left and right pointers
    recursively point to smaller "subtrees" on either side. A null pointer represents a binary....
  3. Data Structures -- Binary Tree -- Mirror Image
    Binary Tree -- Mirror Image (0)
    Given a binary tree, write an algorithm to find its mirror image with minimal time and space
    complexities. Note: If you know the answer and if you feel it is simple also please post the
    answers so that others will come to know about the answers. This question was sent by my friend
    through mail. Solutions Suggested Sol 1 CODE void PrintMirror(node *root) {
        if(node!=NULL)        PrintMirror(root->right);
        Printf(root->data);     PrintMirror(root->left);      } In case of
    implementation using....
  4. Can You Convert This Binary Message
    (6)
    can you crack this QUOTE
    0010001100100011001000110010001100100011001000110010001100100011001000110010001100100011001000110010
    0011001000110010001100100011001000110010001100100011001000110010001100100011001000110010001100100011
    0010001100100011001000110010001100100011001000110010001100100011001000110010001100100011001000110010
    0011001000110010001100100011001000110010001100100011001000110010001100100011001000110010001100100011
    0010001100100011000011010000101000100011001000000010000000100000001000000010000000100000001000000010
    00000010000000100000001000000010000000100000001....
  5. C++ Binary Search Tree Destructor/remove Methods
    howto? (0)
    I have a binary search tree and I need to put a destructor on it. Ideally it would be called when I
    exit the program. How would a destructor look if it should delete all the nodes of a tree
    (recursively prefered). Also, how would I go about removing a node from my tree and then replacing
    it so the tree is still ordered inorder-wise? replacing specs: * If the node x is a leaf, then
    it can simply be clipped off. * If x has a single child then it can be replaced by its child.
    * Otherwise, if x has two children, find the leftmost child in x's right subtr....
  6. Opening Files In Binary Format?
    (3)
    i'm trying to iterate through a file and copy its character by character into a new exe file so
    i can later adapt this functionality into a program that i've already written in two or three
    other languages. its just to dip my fingers back in C since i've gotten rusty from since the
    last time i used to harrass this forum, lol. i seem to believe that once i use fopen in read mode
    that it opens the file in binary mode but it still dosen't give me the results i want, watch a
    small sample of the code please. Code: CODE int main(void) { int a; ....
  7. Binary Tree
    (1)
    Ok my program is supposed to read in from a file and create a linked list of chapters and each
    linked list is supposed to have a link to a binary tree that holds words that are related to each
    chapter so eventually I can code a search function the input file is as follows 3 Drop_Box 10 need
    to drop box with secure box emergency drop urgent Carpet_maintenance 7 grease remove immediately
    cover floor laundry man Smoke_alarm 8 please floor scene urgently scene battery scene box there are
    only 3 lines the top number indicates how many chapters there are and then each line ....
  8. Crack The Binary Code...
    and win an account with 50 Gmail Invites (-1)
  9. Crack The Binary Code...
    and win an account with 50 Gmail Invites (4)
    After my somewhat popular "binary code cracking" thread, I’ve decided to create one that actually
    requires thinking and some logic, as well as some Hexdeimal, HTML and binary code knowledge, the
    person who can successfully crack this code will have the honor of winning the email name --->
    the.last.remaining.screenname@gmail.com, In addition that account has been stashed with 50 juicy
    Gmail Invites. So it's time to start your brains, and use your IQ. Due to the "possible"
    difficulty level of this “code” I have provided three hints: Hint Number 1 – In the fi....
  10. Crack The Binary Code An Win A Gmail Invitation!
    as if you don't have one already... (7)
    Anyways, I've played around with some binary, and made a large binary sentence. If you can
    succefully "crack" to binary code, and convert it back to plain text, you will find in the convered
    text one gmail invite. But, i figured that probably everyone has got one areadly, but, it's wort
    a try, here comes the code. /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif'
    /> This oinvite will automaticlly expire in three weeks, so quickness is the key. -BINARY CODE-
    0101010001100101011100110111010001101001011011100110011100100000010101000110010....

    1. Looking for hex, binary

Searching Video's for hex, binary
advertisement



Hex Or Binary



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE