Assembler:Commands:CVTSI2SS

From Cheat Engine
Jump to navigation Jump to search

command cvtsi2ss destination, source

Converts doubleword integer to single precision floating point value. Used for Converting Doubleword Integer To Scalar-Single-Precision Floating-Point Values. The cvtsi2ss command must be used with xmm registers.


Converts a signed doubleword integer in the source operand (second operand) to a single-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 doubleword of the destination operand, and the upper three doublewords are left unchanged. When a conversion is inexact, the value returned is rounded according to the rounding control bits in the MXCSR register.

c9x.me/x86/html/file_module_x86_id_59.html


Command Parameters

Parameter Description
destination xmm
source r / m32


Examples

cvtsi2ss xmm1,eax
cvtsi2ss xmm3,[edx+110]
cvtsi2ss xmm5,[00123abc]
cvtsi2ss xmm7,[UserDefinedSymbol]
[enable]

 ; ...

 alloc(newmem,$100)

 ; ...

newmem:
 mov eax,00001388
 cvtsi2ss xmm0,eax

 ; ...

 jmp return

 ; ...

return:

 [disable]

 ; ...


See also

External links