I'm doing some random experimentation and want to print out the address the program is at at a given point. I tried doing the following, but it doesn't work:
void foo() {
DWORD blah;
__asm {
mov blah, eip
}
std::cout << blah << "\n";
}
and instead gives "improper operand type" on the mov
line.
I've tried several types for blah
.
Anyone know what I'm doing wrong?