I hope u can help me with translating this code from C code to Beta assemler,please help me i need it from you! :)
a)
if (x + y == 0) {
z = (x >> 16) << 8;
} else {
z = (x – 24) * (10 + 2*y);
}
b)
i = 0;
sum = 0;
while (i < 20) {
sum += 2*i;
i += 3;
}
c) int diff_fib(int N) { // ovo nije pravi Fibonacci niz
if (N < 2) retu N;
retu 2*diff_fib(N-1) – diff_fib(N-2);
}
