![Intel ITANIUM ARCHITECTURE Скачать руководство пользователя страница 400](http://html.mh-extra.com/html/intel/itanium-architecture/itanium-architecture_manual_2073403400.webp)
Volume 4: Base IA-32 Instruction Reference
4:393
XCHG—Exchange Register/Memory with Register
Description
Exchanges the contents of the destination (first) and source (second) operands. The
operands can be two general-purpose registers or a register and a memory location.
When the operands are two registers, one of the registers must be the EAX or AX
register. If a memory operand is referenced, the LOCK# signal is automatically asserted
for the duration of the exchange operation, regardless of the presence or absence of
the LOCK prefix or of the value of the IOPL.
This instruction is useful for implementing semaphores or similar data structures for
process synchronization. (See Chapter 5,
Processor Management and Initialization
, in
the
Intel Architecture Software Developer’s Manual, Volume 3
for more information on
bus locking.)
The XCHG instruction can also be used instead of the BSWAP instruction for 16-bit
operands.
Operation
IF Itanium System Environment AND External_Atomic_Lock_Required AND DCR.lc
THEN IA-32_Intercept(LOCK,XCHG);
TEMP
DEST
DEST
SRC
SRC
TEMP
Flags Affected
None.
Additional Itanium System Environment Exceptions
Itanium Reg Faults NaT Register Consumption Abort.
Itanium Mem FaultsVHPT Data Fault, Nested TLB Fault, Data TLB Fault, Alternate Data
TLB Fault, Data Page Not Present Fault, Data NaT Page Consumption
Abort, Data Key Miss Fault, Data Key Permission Fault, Data Access
Rights Fault, Data Access Bit Fault, Data Dirty Bit Fault
Opcode
Instruction
Description
90+
rw
XCHG AX,
r16
Exchange
r16
with AX
90+
rw
XCHG
r16
,AX
Exchange
r16
with AX
90+
rd
XCHG EAX,
r32
Exchange
r32
with EAX
90+
rd
XCHG
r32
,EAX
Exchange
r32
with EAX
86 /
r
XCHG
r/m8,r8
Exchange byte register with EA byte
86 /
r
XCHG
r8,r/m8
Exchange byte register with EA byte
87 /
r
XCHG
r/m16,r16
Exchange
r16
with EA word
87 /
r
XCHG
r16,r/m16
Exchange
r16
with EA word
87 /
r
XCHG
r/m32,r32
Exchange
r32
with EA doubleword
87 /
r
XCHG
r32,r/m32
Exchange
r32
with EA doubleword
Содержание ITANIUM ARCHITECTURE
Страница 1: ......
Страница 7: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 199: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Страница 269: ...4 262 Volume 4 Base IA 32 Instruction Reference LES Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 270: ...Volume 4 Base IA 32 Instruction Reference 4 263 LFS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 273: ...4 266 Volume 4 Base IA 32 Instruction Reference LGS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 288: ...Volume 4 Base IA 32 Instruction Reference 4 281 LSS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 352: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Страница 368: ...Volume 4 Base IA 32 Instruction Reference 4 361 SHL SHR Shift Instructions See entry for SAL SAR SHL SHR ...
Страница 373: ...4 366 Volume 4 Base IA 32 Instruction Reference SIDT Store Interrupt Descriptor Table Register See entry for SGDT SIDT ...
Страница 589: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Страница 590: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Страница 591: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 603: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...
Страница 604: ......