[Info-vax] Hex display order option for DUMP ?

gah4 gah4 at u.washington.edu
Fri Jul 23 13:58:28 EDT 2021


On Friday, July 23, 2021 at 10:09:43 AM UTC-7, Simon Clubley wrote:

(snip)

> Did everyone miss the part of my posting where I pointed out the 
> current way has advantages for little endian data but also that 
> it's a real pain for binary data ? :-) 

> Binary data can be (for example) non-printable characters in data 
> (which is what caused me to make this request).

Put one finger on the ASCII data, and one on the hex data.
Move one to the right as you read, the other to the left.

It is about as easy as having them both move the same direction.

There is some program that prints hex with ASCII below it, for printable
characters.  But if they are side by side, it doesn't change much
either way.

On little endian machines, od -x will give bytes to you in the order

1 0 3 2 5 4 7 6 9 8 11 10 13 12 15 14

which isn't much easier to read than VMS order.  It doesn't make
bytes easy, or 32 bit words (float), or larger values (double).

I can get used to any of them, but I think I get used to the VMS
ordering faster.




More information about the Info-vax mailing list