Hexadecimal to WORD conversion?
|
Original Message
|
Name: RWD1996
Date: July 6, 2006 at 17:48:27 Pacific
Subject: Hexadecimal to WORD conversion?OS: Windows XP SP2CPU/Ram: AMD Sempron 2600+ (1.6GHzModel/Manufacturer: Myself |
Comment: Hey guys, I'm trying to learn Binary and Hexadecimal math, and I would like to know how to convert a Hexadecimal number to WORD. Is this even possible, or do I have the facts messed up? In the Frhed Hex Editor, I have a program opened. Examining the Hex code, I see a 00 in hex. Looking on the bottom on the status bar, I see that the WORD conversion is 512. How is this calculation achieved? Thanks for your inputs.
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Mechanix2Go
Date: July 6, 2006 at 18:46:01 Pacific
Subject: Hexadecimal to WORD conversion? |
Reply: (edit)It sounds far-fetched that 00 hex "converts" to 512 in any number system. If you want to see the ASCII equivalent of hex bytes, get a chart or a hex editor/viewer. This string: 40 65 63 68 6F 20 6F 66 66 in ASCII is: @echo off ===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: RWD1996
Date: July 6, 2006 at 21:42:01 Pacific
Subject: Hexadecimal to WORD conversion? |
Reply: (edit)You're right. 00 02 was what I was meaning to say...I was confused at the time I wrote it. In Frhed, 00 02 is 512 in WORD. How is this calculation achieved? I thought 512 was 200 in Hexadecimal Notation. But 00 02 seems reversed than 200. I'm probably confusing you, but I'm confused myself.
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: IVO
Date: July 7, 2006 at 12:26:35 Pacific
Subject: Hexadecimal to WORD conversion? |
Reply: (edit)Hex notation is shorthand to handle binary digits and you do not have to confuse math with tech issues; i.e. you are right to say dec 512 is hex 0200 and that is stored in a word (two bytes), but x86 based microprocessors handle a word in a revere way: lowest byte comes first and then the highest. So what you read as word 0200 actually is stored as 0002 in RAM. That is a tech issue related to memory architecture and has nothing to do with math.
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: