Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- iAPx86 - <b>bswap byte swap flags: not altered</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
BSWAP           Byte Swap                            Flags: Not altered

BSWAP destination                                    CPU: 486+

    BSWAP reverses the byte order of a 32-bit register, converting a
    value in little endian format to big endian format, or vice versa.

    If BSWAP is used with a 16-bit operand size, the result in the
    destination register is undefined.

        Example:        mov     eax,87654321h
                        bswap   eax
                        ; eax = 21436587h


    Opcode      Format
    0F C8 /r    BSWAP r32


    Length and timing
    Operands    Bytes   8088    186     286     386     486     Pentium
      r32        2                                       1       1   NP

See Also: XCHG ROL ROR

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson