Quote:
Originally posted by M3GAPL3X
It bascially wants any character converted to ascii.
|
i'll assume you mean 'converted to hex', not ascii (unless you're on a bcd machine, in which case you're beyond help).
well, that's pretty straightforward. you know each 8bit char can be represented as 2 hex characters. without writing the code for you, here are the steps you need:
split your char into "high" and "low" halves. each of these is one hex character (4 bits).
find a way to get the corresponding hexadecimal character of a 4 bit value.