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