assembly language
Convert the following C++ program into an x86 assembly language program
Your output must match the expected output given below for full points consideration
// Expected output:
// <<Bradley Sward>>'s solution to problem one
// -13 -4 +21 +64 +7 +8
// Press any key to continue...
#include <iostream>
using namespace std;
// Global variables
int a = -5;
int b = 2;
int c = 7;
int d;
int e[]{ 5, 4, 1, 9, 8, 7 };
void main()
{
// Replace <Bradley Sward> with your name please
cout << "<<Bradley Sward>>'s solution to problem one" << endl;
b = -c + 6 - c + a;
cout << b << " ";
a++;
cout << a << " ";
d = a - 11 + c + 9 - b + c;
cout << d << " ";
a = 44 - b + c;
cout << a << " ";
d = c;
cout << d << " ";
cout << e[4] << endl;
system("PAUSE");
}
Step by step
Solved in 2 steps with 1 images