Difference between revisions of "Assembler:Commands:CMOVA"

From Cheat Engine
Jump to navigation Jump to search
m
m
Line 6: Line 6:
 
If '''CF=0''' AND '''ZF=0''' then condition is satisfied, otherwise it will be skipped.
 
If '''CF=0''' AND '''ZF=0''' then condition is satisfied, otherwise it will be skipped.
  
CMOVcc instructions are used after [[Assembler:Commands:CMP|CMP]]
+
CMOVcc instructions are mainly used after [[Assembler:Commands:CMP|CMP]]
  
  

Revision as of 08:56, 8 January 2018

command cmova destination, source

cmova is CMOVcc instruction, The cmova conditional move if above check the state of CF AND ZF.

If CF=0 AND ZF=0 then condition is satisfied, otherwise it will be skipped.

CMOVcc instructions are mainly used after CMP


The CMOVcc instructions check the state of one or more of the status flags in the EFLAGS register (CF, OF, PF, SF, and ZF) and perform a move operation if the flags are in a specified state (or condition). A condition code (cc) is associated with each instruction to indicate the condition being tested for. If the condition is not satisfied, a move is not performed and execution continues with the instruction following the CMOVcc instruction.

These instructions can move a 16- or 32-bit value from memory to a general-purpose register or from one general-purpose register to another. Conditional moves of 8-bit register operands are not supported.

The terms "less" and "greater" are used for comparisons of signed integers and the terms "above" and "below" are used for unsigned integers.


Command Parameters

Parameter Description
destination r16 / r32
source m16-r16 / m32-r32


Examples

cmova dx,ax
cmova cx,[bx]
cmova edx,[edx+110]
cmova eax,edx
cmova esi,[00123abc]
cmova edi,[UserDefinedSymbol]


See also

External links