All,

Please can you somebody post the syntax for the hexdump function...

HexDump  PROTO :DWORD,:DWORD,:DWORD

Thanks
Posted on 2010-02-15 07:08:53 by karthikeyanck
I'm not sure if hexdump would do what I need, but what am looking for is to dump the hexvalues from certain blocks of memory - say from X to Y. So they appear the same as they are in the memory.... like the one attached... I need the same set of values from the memory to be printed on the console...

Thanks
Attachments:
Posted on 2010-02-15 07:15:29 by karthikeyanck
Each byte (8 bits) can be thought of as two 4-bit values aka nybbles.
Each 4 bit value can be from 0 to 15, ie 0 to F in hexadecimal.

To convert a byte value into hexadecimal, split it into two 4-bit values, and print out the character associated with each possible value.. if its less than ten, print a number... ten or more, print a thru f.

Try doing it yourself :)

Its worth noting that the wsprintf function can do what you want, but its not as fun or educational as writing your own function.
Posted on 2010-02-15 07:55:06 by Homer