a) Prototype a macro known AP which takes 4 integer parameters n (number of terms), a (first term), l (last term) and Sum (sum of n terms), provided that:
Sum = (a+l)*n/2
b) Consider you made the following declarations:
D DB -66, 29, 120
E DW 258, -30, 17
Provide the contents of the destination register in each case:
mov al, D + 2
mov ax, E - 2
mov ax, E + 3
mov al, BYTE PTR E + 1
mov ax, WORD PTR D + 3
c) Provide a diagrammatic interpretation of the hardware stack and describe the purpose of the Stack Pointer (SP).