bswap

Byte Swap

BSWAP r32

Reverses the byte order of a register (Endian swap).

Details

The Byte Swap instruction reverses the byte order of a register (Endian swap).

Pseudocode Operation

// Reverses the byte order of a register (Endian swap)

Example

BSWAP eax

Encoding

Binary Layout
0F
+0
C8+reg
+1
 
Format Legacy
Opcode 0F C8+rd
Extension Base

Operands

  • dest
    32-bit general-purpose register (e.g. EAX)