convert c to assembly with predicated instruction
<p>I want to convert this code to assembly using predicated instruction</p>

<pre><code>If (A&gt;B){

    C=A;
    D=B;
    E=0

}

else{

    C=B;
} 
</code></pre>

<p>Is it correct or how can i use jump ?</p>

<pre><code>cmp R1,R2; considering B is assigned to R2 and A assigned to R1
movlf R3,R1;R3 assign to C
mov R4,R2;R4 assign to D
mov R5,0; R5 assign to E
movlt R3,R2
</code></pre>