For the following, assume that variables a, b, and i are kept ingeneral purpose registers and that a base register holds the baseaddress of array D.
Write EMU8086 assembly code for the following C code fragments,try to minimize the number of assembly instructions:
(a) A simple for loop: for (i = 0; i < 10, i++) a += b;
(b) do the same thing for the following C code.
for (i = 0; i < 10, i+=2) {
D[i] = D[i] + 1; D[i+1] = D[i+1] + 1;
}
(c) A while loop with an array:
while (a < 10) {
D[a] = a + b; a +=
PayPal Gateway not configured
PayPal Gateway not configured