Convert the following C++ program to pep9/Assembly language BR Main format not machine language #include using namespace std; int times(int mpr, int mcand) { int prod = 0; while (mpr != 0) { if (mpr...


Convert the following C++ program to pep9/Assembly language
BR Main
format
not
machine language


#include
using namespace std;


int times(int mpr, int mcand)
{
int prod = 0;
while (mpr != 0)
{
if (mpr % 2 == 1)
prod = prod + mcand;
mpr /= 2;
mcand *= 2;
}


return prod;
}


int main(){


int n, m;


cout < "enter="" two="" numbers:="">
cin >> n >> m;


cout < "product:="" "="">< times(n,="" m)=""><>


return 0;
}



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here