convert c to assembly mit vorhergesagter Anweisung [closed]
Ich möchte diesen Code mithilfe einer vorgegebenen Anweisung in eine Assembly konvertieren
If (A>B){
C=A;
D=B;
E=0
}
else{
C=B;
}
Ist es korrekt, ct oder wie kann ich springen?
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