EasyManua.ls Logo

AMD K5

AMD K5
406 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3-30 Software Environment and Extensions
AMD-K5 Processor Technical Reference Manual 18524C/0Nov1996
3.3.2 CMPXCHG8B
mnemonic opcode description
CMPXCHG8B r/m64 0FC7 Compare and exchange 8-byte operand
Privilege: Any level
Registers Affected: EAX, EBX, ECX, EDX
Flags Affected: ZF
Exceptions Generated: Real, Virtual-8086, Protected modeGP(0) for all standard cases. Invalid opcode if
destination is a register.
Virtual-8086 modePage fault
The CMPXCHG8B instruction is an 8-byte version of the 4-byte CMPXCHG instruc-
tion supported by the 486 processor. CMPXCHG8B compares a value from memory
with a value in the EDX and EAX register, as follows:
EDXUpper 32 bits of compare value
EAXLower 32 bits of compare value
If the memory value matches the value in EDX and EAX, the ZF flag is set to 1 and
the 8-byte value in ECX and EBX is written to the memory location, as follows:
ECXUpper 32 bits of exchange value
EBXLower 32 bits of exchange value

Table of Contents

Related product manuals