Assembler:Commands:CVTSI2SD
								
								Jump to navigation
				Jump to search
				
		command cvtsi2sd destination, source
Converts doubleword integer to double precision floating point value. Used for Converting Doubleword Integer To Scalar-Double-Precision Floating-Point Values. The cvtsi2sd command must be used with xmm registers.
Converts a signed doubleword integer in the source operand (second operand) to a double-precision floating-point value in the destination operand (first operand). The source operand can be a general-purpose register or a 32-bit memory location. The destination operand is an XMM register. The result is stored in the low quadword of the destination operand, and the high quadword left unchanged.
Command Parameters[edit]
| Parameter | Description | 
|---|---|
| destination | xmm | 
| source | r / m32 | 
Examples[edit]
cvtsi2sd xmm1,eax
cvtsi2sd xmm3,[edx+110]
cvtsi2sd xmm5,[00123abc]
cvtsi2sd xmm7,[UserDefinedSymbol]
[enable] ; ... alloc(newmem,$100) ; ... newmem: mov eax,00001388 cvtsi2sd xmm0,eax ; ... jmp return ; ... return: [disable] ; ...

