Im just stuck on these 2. I know I am overthinking them.
Write an assembly language program that corresponds to the following C++ program:
#include <iostream>
using namespace std;
int num;
int main () {
cin >> num;
num = num / 16;
cout << "num = " << num << endl;
return 0;
}
Write an assembly language program that corresponds to the following C++ program:
#include <iostream>
using namespace std;
int num;
int main () {
cin >> num;
num = num % 16;
cout << "num = " << num << endl;
return 0;
}
I said im stuck, didn't ask to do just explanation for help.
What is the problem here?
You do not know how to get value?
You do not know how to make math calculations?
You do not know how to output stuff?
@MiiNipaa. You forgot to add "All of the above" Which is what I think he means.
Last edited on
is Assembly language portable?
i.e. AL written for windowsXP+pentium4 will run in windows7+corei3 or linux+AMD ??
if they are different the OP doesn't specify the target machine ?
Last edited on