Question: Write an assembly language program that corresponds to the following C++ program. Comment each line except STOP & .END. Add something to the output that

Write an assembly language program that corresponds to the following C++ program. Comment each line except STOP & .END. Add something to the output that makes this program uniquely yours. Cut & paste the Assembler Listing into your document. (Hint: PEP/8 does not have a multiply instruction, however we have discussed an instruction that multiplies by 2. Please use that instruction.)

#include using namespace std; int a; int b; int c; int rslt; int main( ) {

cout<<"Input 3 numbers " <>a>>b>>c; rslt = (a + b + c) *2; cout<<"a= " <

return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!