Difference between revisions of "Assembler:Commands:CMOVG"
Jump to navigation
Jump to search
(Created page with 'Category:Assembler '''command''' cmovg ''destination, source'' cmovg is CMOVcc instruction, The cmovg (conditional move if equal) check the state of '''ZF''', '''SF''' AND '…') |
m |
||
Line 2: | Line 2: | ||
'''command''' cmovg ''destination, source'' | '''command''' cmovg ''destination, source'' | ||
− | cmovg is CMOVcc instruction, The cmovg (conditional move if | + | cmovg is CMOVcc instruction, The cmovg (conditional move if greater) check the state of '''ZF''', '''SF''' AND '''OF'''', if '''ZF=0''' AND '''SF=OF''' then condition satisfied and the cmovg will be executed. Otherwise it will be skipped, and the execution will continues with the instruction following it. cmovg is used for signed integers. |
Revision as of 04:34, 5 January 2018
command cmovg destination, source
cmovg is CMOVcc instruction, The cmovg (conditional move if greater) check the state of ZF, SF AND OF', if ZF=0 AND SF=OF then condition satisfied and the cmovg will be executed. Otherwise it will be skipped, and the execution will continues with the instruction following it. cmovg is used for signed integers.
Command Parameters
Parameter | Description |
---|---|
destination | r16 / r32 |
source | m16-r16 / m32-r32 |
Examples
cmovg dx,ax
cmovg cx,[bx]
cmovg edx,[edx+110]
cmovg eax,edx
cmovg esi,[00123abc]
cmovg edi,[UserDefinedSymbol]