rfmas3
rfmas3

Reputation: 103

Memory contents to ASCII string, little endian format

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?

Upvotes: 0

Views: 816

Answers (1)

Robert Bain
Robert Bain

Reputation: 405

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.

Upvotes: 1

Related Questions