Assembler:Commands:CVTDQ2PS

From Cheat Engine
Jump to navigation Jump to search

command cvtdq2ps destination, source

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


Converts four packed signed doubleword integers in the source operand (second operand) to four packed single-precision floating-point values in the destination operand (first operand). The source operand can be an XMM register or a 128-bit memory location. The destination operand is an XMM register. When a conversion is inexact, rounding is performed according to the rounding control bits in the MXCSR register.

c9x.me/x86/html/file_module_x86_id_47.html


Command Parameters

Parameter Description
destination xmm
source m128 / xmm


Examples

cvtdq2ps xmm1,xmm1
cvtdq2ps xmm3,[edx+110]
cvtdq2ps xmm15,[rdx+10]
cvtdq2ps xmm5,[00123abc]
cvtdq2ps xmm7,[UserDefinedSymbol]
[enable]

 ; ...

 alloc(newmem,$100)
 globalalloc(sse,08)

sse:
 dd 64
 dd 63
 dd 62
 dd 61

 ; ...

newmem:
 cvtdq2ps xmm0,[sse]

 ; ...

 jmp return

 ; ...

return:

 [disable]

 ; ...


See also

External links