Hello,
How to convert a dword in big endian ? a dword in little endian ?
Thanks for answer,toutEnmasm
bswap eax
or for processors that don't support bswap..
xcgh al,ah
rol eax,16
xcgh al,ah
bswap for 486+
I don't know of any 386 or older systems running right now.
Regards, P1 :8)
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