Problem:
Question- Write a 32-bit Assembly program with a loop and indexed addressing calculates sum of all gaps between successive array elements.
The array is dwarray dword 0,2,5,9,10
So, the gaps would be 2, 3, 4, and 1, which equals 10.
Please describe the code with the help of comments.