Memory contents to ASCII string, little endian format

风流意气都作罢 提交于 2019-12-02 19:09:43

问题


I have to translate the following memory contents to ASCII code, using little endian format:

0x6A636162 0x64726177 0x00002173

I got "jcab draw! s", which is wrong (and of course, is complete nonsense). How are you supposed to do this using little endian format?


回答1:


It's supposed to be "backwards!" You read the first two rightmost hex values first as one ascii char, and then focus on the pair to the left of that, until you get to the furthest left most hex values.



来源:https://stackoverflow.com/questions/10369625/memory-contents-to-ascii-string-little-endian-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!