Answer the question
In order to leave comments, you need to log in
Assembler inserts in C++?
I'm doing an assembler insert in C++.
I want to get a value from memory, write it to a variable, but it returns an error.
#include "pch.h"
#include <iostream>
using namespace std;
void main()
{
int a;
__asm
{
push eax
mov eax,DWORD PTR[117C4610]
mov a,eax
}
cout << a << endl;
system("pause");
}
Answer the question
In order to leave comments, you need to log in
Alternatively, add mb 0x at the beginning. Or just convert to decimal and score.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question