AMD Confidential
User Manual September 12h, 2008
218 Appendix A
Instruction
Supported
Mnemonic
Opcode
Description
SUB reg/mem16,imm16
81 /5 iw
Subtract an immediate 16-bit value
from a 16-bit destination register or
memory location.
SUB reg/mem32,imm32
81 /5 id
Subtract an immediate 32-bit value
from a 32-bit destination register or
memory location.
SUB reg/mem64,imm32
81 /5 id
Subtract a sign-extended immediate
32-bit value from a 64-bit
destination register or memory
location.
SUB reg/mem16,imm8
83 /5 ib
Subtract a sign-extended immediate 8-
bit value from a 16-bit register or
memory location.
SUB reg/mem32,imm8
83 /5 ib
Subtract a sign-extended immediate 8-
bit value from a 32-bit register or
memory location.
SUB reg/mem64,imm8
83 /5 ib
Subtract a sign-extended immediate 8-
bit value from a 64-bit register or
memory location.
SUB reg/mem8,reg8
28 /r
Subtract the contents of an 8-bit
register from an 8-bit destination
register or memory location.
SUB reg/mem16,reg16
29 /r
Subtract the contents of a 16-bit
register from a 16-bit destination
register or memory location.
SUB reg/mem32,reg32
29 /r
Subtract the contents of a 32-bit
register from a 32-bit destination
register or memory location.
SUB reg/mem64,reg64
29 /r
Subtract the contents of a 64-bit
register from a 64-bit destination
register or memory location.
SUB reg8,reg/mem8
2A /r
Subtract the contents of an 8-bit
register or memory operand from an 8-
bit destination register.
SUB reg16,reg/mem16
2B /r
Subtract the contents of a 16-bit
register or memory operand from a 16-
bit destination register.
SUB reg32,reg/mem32
2B /r
Subtract the contents of a 32-bit
register or memory operand from a 32-
bit destination register.
SUB reg64,reg/mem64
2B /r
Subtract the contents of a 64-bit
register or memory operand from a 64-
bit destination register.
TEST AL,imm8
AB ib
AND an immediate 8-bit value with the
contents of the AL register and set
rFLAGS to reflect the result.
TEST AX,imm16
A9 iw
AND an immediate 16-bit value with
the contents of the AX register and
set rFLAGS to reflect the result.
TEST EAX,imm32
A9 id
AND an immediate 32-bit value with
the contents of the EAX register and
set rFLAGS to reflect the result.
TEST RAX,imm32
A9 id
AND a sign-extened immediate 32-bit
value with the contents of the RAX
register and set rFLAGS to reflect
the result.
TEST reg/mem8,imm8
F6 /0 ib
AND an immediate 8-bit value with the
contents of an 8-bit register or
memory operand and set rFLAGS to
reflect the result.
TEST reg/mem16,imm16
F7 /0 iw
AND an immediate 16-bit value with
the contents of a 16-bit register or
memory operand and set rFLAGS to
reflect the result.
TEST reg/mem32,imm32
F7 /0 id
AND an immediate 32-bit value with
the contents of a 32-bit register or
memory operand and set rFLAGS to
reflect the result.
TEST reg/mem64,imm32
F7 /0 id
AND a sign-extened immediate 32-bit
value with the contents of a 64-bit
register or memory operand and set
rFLAGS to reflect the result.
TEST reg/mem8,reg8
84 /r
AND the contents of an 8-bit register
with the contents of an 8-bit
register or memory operand and set
rFLAGS to reflect the result.