??? 11/05/07 12:14 Read: times |
#146605 - That's it Responding to: ???'s previous message |
Shehryar Shaukat said:
i dont understand what do you mean by ASCII-coded characters to raw binary byte values conversion. because if the pair ascii FF means 255. That's right: "FF" is a pair of ASCII-coded characters; The ASCII code for each 'F' character is 0x46; The byte value represented by these 2 characters is 255 (0xFF) Another example: "A5" is a pair of ASCII-coded characters; The ASCII code for the 'A' character is 0x41; The ASCII code for the '5' character is 0x35; The byte value represented by these 2 characters is 165 (0xA5) Thus, the Intel Hex format requires two characters (a total of 16 bits) to represent each byte (8 bits) of binary data. Aside: So that's a 100% overhead just for the "payload" bytes; The other framing & check fields represent a further overhead. This is why the size of a Hex file bears very little relation to the actual size of an executable image... |