Question: QUESTION 1 ( USE IRVINE LIBRARY ) Convert this C + + program ( and accompanying function ) into x 8 6 assembly language Make

QUESTION 1( USE IRVINE LIBRARY)
Convert this C++ program (and accompanying function) into x86 assembly language
Make sure to use the proper best practices taught in Chapter 8 regarding parameter passing and local variables
#include
using namespace std;
// Use registers instead of variables listed here
int eax, ebx, ecx, edx, esi, edi, ebp, esp;
// Simply return the appropriate value based on the input shown on the chart below
//8+ means a value from 8 on up as positive as unsigned int can hold
int Transformation(unsigned int input)
{
|NPUT
}
void main()
void main()
{
ecx =5;
do
{
cout "What's your input? ";
cin >> eax;
eax = Transformation(eax);
cout "I was told to tell you something like... ";
cout eax;
cout endl;
} while (--ecx !=0);
cout "";
}
QUESTION 1 ( USE IRVINE LIBRARY ) Convert this C

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 Programming Questions!