P
Protoman
I'm getting errors saying there's too many memory refrences for add and
mov; here's the code:
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int i=0;
asm("mov eax,i");
asm("add eax,12");
asm("mov i,eax");
cout << "The value of i is: " << i;
system("PAUSE");
return 0;
}
I'm using Dev-Cpp; can you help me on this? Thanks!!!
mov; here's the code:
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int i=0;
asm("mov eax,i");
asm("add eax,12");
asm("mov i,eax");
cout << "The value of i is: " << i;
system("PAUSE");
return 0;
}
I'm using Dev-Cpp; can you help me on this? Thanks!!!