EasyManua.ls Logo

AMD AMD5K86 - MOV to and from CR4

AMD AMD5K86
416 pages
Print Icon
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...
AMD~
AMD5t<!36
Processor
Technical
Reference
Manual
18524B/O-Mar1996
3.3.2
CMPXCHCiSB
mnemonic
opcode
description
CMPXCHG8B
r/m64
OFC7
Compare
and
exchange
8-byte
operand
Privilege:
Registers
Affected:
Flags
Affected:
CPL=O
EAX,
EBX,
ECX,
EDX
ZF
Exceptions
Generated:
Real,
Virtual-8086,
Protected
mode-GP{O}
for
all
standard
cases.
Invalid
opcode
if
destination
is
a
register.
Virtual-8086
mode-Page
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:
EDX-Upper
32
bits
of
compare
value
EAX-Lower
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:
ECX-
Upper
32
bits
of
exchange
value
EBX
-
Lower
32
bits
of
exchange
value
3-32
Software
Environment
and
Extensions

Table of Contents

Related product manuals