The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Hello, I have to write a program in assembly with a loop and indexed addressing that calculates the sum of all the gaps between successive array elements. The array elements are double words, sequenced in nondecreasing order. So, for example, the array[0, 2, 5, 9, 10] has gaps of 2, 3, 4, and 1, whose sum equals to 10. I need help wirting it. I'm using visual studio 2013 and actually is the sum of the difference of the gaps in the array(i.e.0-2 = 2, register has a value of 2; then 5-2 =3 and 2 + 3 = 5 and so on....) Thanks>
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll