AMD Confidential
User Manual November 21
st
, 2008
Appendix A 189
+i – Specifies an x87 floating-point stack operand, ST(i). The value is used only
with x87 floating-point instructions. It is added to the hexadecimal byte on the
left, forming a one-byte opcode. Valid values range from 0 to 7.
A.6.2 General Purpose Instructions
This chapter describes the function, mnemonic syntax, and opcodes that the simulator
simulates. General-purpose instructions are used in basic software execution. Most of
these instructions load, store, or operate on data location in the general-purpose registers
(GPRs), in memory, or in both. The remaining instructions are used to alter the sequential
flow of the program by branching to other locations within the program, or to entirely
different programs.
Create an unpacked BCD number.
Adjust two BCD digits in AL and AH.
Create a pair of unpacked BCD values
in AH and AL.
Create an unpacked BCD number from
the contents of the AL register.
Add sign-ext. imm32 to RAX + CF.
Add imm8 to reg/mem8 + CF.
Add imm16 to reg/mem16 + CF.
Add imm32 to reg/mem32 + CF.
Add sign-ext. imm32 to reg/mem64 +
CF.
Add sign-ext. imm8 to reg/mem16 + CF.
Add sign-ext. imm8 to reg/mem32 + CF.
Add sign-ext. imm8 to reg/mem64 + CF.
Add reg8 to reg/mem8 + CF.
Add reg16 to reg/mem16 + CF.
Add reg32 to reg/mem32 + CF.
Add reg64 to reg/mem64 + CF.
Add reg/mem8 to reg8 + CF.
Add reg/mem16 to reg16 + CF.
Add reg/mem32 to reg32 + CF.
Add reg/mem64 to reg64 + CF.
Add sign-ext. imm32 to reg/mem64.
Add sign-ext. imm8 to reg/mem16.
Add sign-ext. imm8 to reg/mem32.
Add sign-ext. imm8 to reg/mem64.