Volume 3: General-Purpose and System Instructions - Stanford ...
Volume 3: General-Purpose and System Instructions - Stanford ... Volume 3: General-Purpose and System Instructions - Stanford ...
AMD64 Technology 24594 Rev. 3.10 February 2005CBWCWDECDQEConvert to Sign-extendedCopies the sign bit in the AL or eAX register to the upper bits of the rAX register. Theeffect of this instruction is to convert a signed byte, word, or doubleword in the AL oreAX register into a signed word, doubleword, or double quadword in the rAX register.This action helps avoid overflow problems in signed number arithmetic.The CDQE mnemonic is meaningful only in 64-bit mode.Mnemonic Opcode DescriptionCBW 98 Sign-extend AL into AX.CWDE 98 Sign-extend AX into EAX.CDQE 98 Sign-extend EAX into RAX.Related InstructionsCWD, CDQ, CQOrFLAGS AffectedNoneExceptionsNone96 CBW, CWDE, CDQE
24594 Rev. 3.10 February 2005 AMD64 TechnologyCWDCDQCQOConvert to Sign-extendedCopies the sign bit in the rAX register to all bits of the rDX register. The effect of thisinstruction is to convert a signed word, doubleword, or quadword in the rAX registerinto a signed doubleword, quadword, or double-quadword in the rDX:rAX registers.This action helps avoid overflow problems in signed number arithmetic.The CQO mnemonic is meaningful only in 64-bit mode.Mnemonic Opcode DescriptionCWD 99 Sign-extend AX into DX:AX.CDQ 99 Sign-extend EAX into EDX:EAX.CQO 99 Sign-extend RAX into RDX:RAX.Related InstructionsCBW, CWDE, CDQErFLAGS AffectedNoneExceptionsNoneCWD, CDQ, CQO 97
- Page 76 and 77: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 78 and 79: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 80 and 81: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 82 and 83: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 84 and 85: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 86 and 87: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 88 and 89: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 90 and 91: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 92 and 93: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 94 and 95: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 96 and 97: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 98 and 99: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 100 and 101: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 102 and 103: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 104 and 105: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 106 and 107: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 108 and 109: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 110 and 111: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 112 and 113: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 114 and 115: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 116 and 117: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 118 and 119: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 120 and 121: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 122 and 123: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 124 and 125: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 128 and 129: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 130 and 131: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 132 and 133: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 134 and 135: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 136 and 137: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 138 and 139: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 140 and 141: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 142 and 143: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 144 and 145: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 146 and 147: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 148 and 149: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 150 and 151: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 152 and 153: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 154 and 155: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 156 and 157: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 158 and 159: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 160 and 161: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 162 and 163: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 164 and 165: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 166 and 167: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 168 and 169: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 170 and 171: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 172 and 173: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 174 and 175: AMD64 Technology 24594 Rev. 3.10 Fe
24594 Rev. 3.10 February 2005 AMD64 TechnologyCWDCDQCQOConvert to Sign-extendedCopies the sign bit in the rAX register to all bits of the rDX register. The effect of thisinstruction is to convert a signed word, doubleword, or quadword in the rAX registerinto a signed doubleword, quadword, or double-quadword in the rDX:rAX registers.This action helps avoid overflow problems in signed number arithmetic.The CQO mnemonic is meaningful only in 64-bit mode.Mnemonic Opcode DescriptionCWD 99 Sign-extend AX into DX:AX.CDQ 99 Sign-extend EAX into EDX:EAX.CQO 99 Sign-extend RAX into RDX:RAX.Related <strong>Instructions</strong>CBW, CWDE, CDQErFLAGS AffectedNoneExceptionsNoneCWD, CDQ, CQO 97