Question: convert this c + + code into x 8 6 masm assembly code using Irvine Library. #include using namespace std; / / Use x 8
convert this c code into x masm assembly code using Irvine Library.
#include
using namespace std;
Use x processor CPU registers instead of the variables listed here
int eax, ebx, ecx, edx, esi, edi, ebp, esp;
NOTE: Each x assembly language function must return in one place only
NOTE: Global variables are not function parameters and must not be used as such
int Transformationint eax, int ebx
if eax
return ;
else if eax
return ;
else
return eax ebx ;
int main
std::cout "How many iterations to process...? ;
std::cin ecx;
std::cout "Never mind... Youre going to have and like it;
std::cout std::endl;
ecx ;
do
std::cout "LOOP ITERATION ;
std::cout ecx;
std::cout std::endl;
std::cout "Enter ebx: ;
std::cin ebx;
std::cout "Enter eax: ;
std::cin eax;
eax Transformationeax ebx;
std::cout "The result of the transformation is: ;
std::cout eax;
std::cout std::endl;
while ecx ;
std::cout "Thank you for using this program!";
std::cout std::endl;
systempause;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
