AMD 4.4.5 user manual 217

Models: 4.4.5

1 269
Download 269 pages 44.58 Kb
Page 229
Image 229

 

 

 

 

 

AMD Confidential

 

 

 

 

 

November 21st, 2008

User Manual

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction

 

 

 

 

 

 

 

 

 

 

 

 

 

Supported

 

 

Mnemonic

 

 

 

Opcode

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Subtract

the contents of an 8-bit

 

SUB reg/mem8,reg8

 

28

/r

 

register

from an 8-bit destination

 

 

 

 

 

 

 

 

 

register or memory location.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Subtract

the contents of a 16-bit

 

SUB reg/mem16,reg16

 

29

/r

 

register

from a 16-bit destination

 

 

 

 

 

 

 

 

 

register or memory location.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Subtract

the contents of a 32-bit

 

SUB reg/mem32,reg32

 

29

/r

 

register

from a 32-bit destination

 

 

 

 

 

 

 

 

 

register or memory location.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Subtract

the contents of a 64-bit

 

SUB reg/mem64,reg64

 

29

/r

 

register

from a 64-bit destination

 

 

 

 

 

 

 

 

 

register or memory location.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Subtract

the

contents

of

an

8-bit

 

SUB reg8,reg/mem8

 

 

2A

/r

 

register or memory operand from an 8-

 

 

 

 

 

 

 

 

 

bit destination register.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Subtract

the

contents

of

a

16-bit

 

SUB reg16,reg/mem16

 

 

2B

/r

 

register or memory operand from a 16-

 

 

 

 

 

 

 

 

 

bit destination register.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Subtract

the

contents

of

a

32-bit

 

SUB reg32,reg/mem32

 

 

2B

/r

 

register or memory operand from a 32-

 

 

 

 

 

 

 

 

 

bit destination register.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Subtract

the

contents

of

a

64-bit

 

SUB reg64,reg/mem64

 

 

2B

/r

 

register or memory operand from a 64-

 

 

 

 

 

 

 

 

 

bit destination register.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND an immediate 8-bit value with the

 

TEST AL,imm8

 

 

AB ib

 

contents of the AL register and set

 

 

 

 

 

 

 

 

 

rFLAGS to reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND

an

immediate 16-bit value with

 

TEST AX,imm16

 

 

A9

iw

 

the contents of the AX register and

 

 

 

 

 

 

 

 

 

set rFLAGS to reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

AND

an

immediate 32-bit value with

 

TEST EAX,imm32

 

 

A9

id

 

the contents of the EAX register and

 

 

 

 

 

 

 

 

 

set rFLAGS to reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

AND a sign-extened immediate 32-bit

 

TEST RAX,imm32

 

 

A9

id

 

value

with

the

contents

of the

RAX

 

 

 

 

register

and set rFLAGS to reflect

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND an immediate 8-bit value with the

 

TEST reg/mem8,imm8

 

 

F6

/0 ib

 

contents

of

 

an

8-bit

register

or

 

 

 

 

memory operand and set rFLAGS to

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND

an

immediate 16-bit value with

 

TEST reg/mem16,imm16

 

 

F7

/0 iw

 

the

contents of a 16-bit register or

 

 

 

 

memory operand and set rFLAGS to

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND

an

immediate 32-bit value with

 

TEST reg/mem32,imm32

 

 

F7

/0 id

 

the

contents of a 32-bit register or

 

 

 

 

memory operand and set rFLAGS to

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND a sign-extened immediate 32-bit

 

TEST reg/mem64,imm32

 

 

F7

/0 id

 

value

with the contents of a

64-bit

 

 

 

 

register or memory operand and set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

rFLAGS to reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND the contents of an 8-bit register

 

TEST reg/mem8,reg8

 

84

/r

 

with

 

the

contents

of

 

an

8-bit

 

 

 

register or memory operand and set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

rFLAGS to reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND the contents of a 16-bit register

 

TEST reg/mem16,reg16

 

85

/r

 

with

 

the

contents

of

 

a

16-bit

 

 

 

register or memory operand and set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

rFLAGS to reflect the result.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND the contents of a 32-bit register

 

 

 

 

TEST reg/mem32,reg32

 

85

/r

 

with

 

the

contents

of

 

a

32-bit

 

 

 

register or memory operand and set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

rFLAGS to reflect the result.

 

 

 

 

 

 

Appendix A

217

Page 229
Image 229
AMD 4.4.5 user manual 217