News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

little endian big endian

Started by ToutEnMasm, May 31, 2006, 08:18:42 PM

Previous topic - Next topic

ToutEnMasm

Hello,
How to convert a dword in big endian ?         a dword in little endian ?
                          Thanks for answer,toutEnmasm

dsouza123


Tedd

or for processors that don't support bswap..

xcgh al,ah
rol eax,16
xcgh al,ah
No snowflake in an avalanche feels responsible.

P1

bswap for 486+

I don't know of any 386 or older systems running right now.

Regards,  P1  :8)

savage

If my processor didn't support bswap, then I think by the time I typed:
Quote
xcgh al,ah
rol eax,16
xcgh al,ah

I could have upgraded to a 486+

...btw, shoulldn't that be xchg? =P