Move if Equal to Zero (cmoveq)

Syntax

cmoveq $s_reg1, $s_reg2, $d_reg

cmoveq $d_reg/$s_reg1, $s_reg2

cmoveq $s_reg1, val_immed, $d_reg

cmoveq $d_reg/$s_reg1, val_immed

Description

Move if Equal to Zero moves the contents of $s_reg2 or the immediate value to the destination register if the contents of $s_reg1 is equal to zero.