Course Solutions Uncategorized (Solved) : Need Help Extra Take Following Program Translate Pep 9 Assembly Language Include Using Nam Q31677222 . . . .

(Solved) : Need Help Extra Take Following Program Translate Pep 9 Assembly Language Include Using Nam Q31677222 . . . .

 

Need help for this and the extra:

Take the following program and translate it into PEP/9 assemblylanguage: #include using namespace std;

int theArray[] = { 5, 11, -29, 45, 9, -1};

void sumPos(int ary[], int len, int &sum)

{

   sum = 0;

   for (int i = 0; i < len; i++)

           if(ary[i] > 0)

              sum = sum + ary[i];

}

int main()

{

   int total;

   sumPos(theArray, 6, total);

   for (int k=0; k < 6; k++)

     cout << theArray[k] <<endl;

cout << “Positive sum is ” << total <<endl;

   return 0;

}

You must use equates to access the stack and the index registerin accessing the array. Remember, the sumPos array does

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Please Answer Java Programming Code Write Program Prompts Reads Course Name Credits Refere Q30808020 . . . .(Solved) : Please Answer Java Programming Code Write Program Prompts Reads Course Name Credits Refere Q30808020 . . . .

<p>Please answer this in java programming code:</p><p>Write a program that prompts for and reads a course name, itscredits and<br/>reference book. Then print the following paragraph, inserting theappropriate data:</p><p><br/>"This semester, a