![Intel ITANIUM ARCHITECTURE Manual Download Page 46](http://html.mh-extra.com/html/intel/itanium-architecture/itanium-architecture_manual_2073403046.webp)
Volume 4: Base IA-32 Instruction Reference
4:39
BSWAP—Byte Swap
Description
Reverses the byte order of a 32-bit (destination) register: bits 0 through 7 are swapped
with bits 24 through 31, and bits 8 through 15 are swapped with bits 16 through 23.
This instruction is provided for converting little-endian values to big-endian format and
vice versa.
To swap bytes in a word value (16-bit register), use the XCHG instruction. When the
BSWAP instruction references a 16-bit register, the result is undefined.
Operation
TEMP
DEST
DEST(7..0)
TEMP(31..24)
DEST(15..8)
TEMP(23..16)
DEST(23..16)
TEMP(15..8)
DEST(31..24)
TEMP(7..0)
Flags Affected
None.
Additional Itanium System Environment Exceptions
Itanium Reg Faults NaT Register Consumption Abort.
Exceptions (All Operating Modes)
None.
Intel Architecture Compatibility Information
The BSWAP instruction is not supported on Intel architecture processors earlier than
the Intel486™ processor family. For compatibility with this instruction, include
functionally-equivalent code for execution on Intel processors earlier than the Intel486
processor family.
Opcode
Instruction
Description
0F C8+
rd
BSWAP
r32
Reverses the byte order of a 32-bit register.
Summary of Contents for ITANIUM ARCHITECTURE
Page 1: ......
Page 7: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 199: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Page 352: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Page 589: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Page 590: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Page 591: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 603: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...
Page 604: ......