#include "stdafx.h"
int A, B;
int _tmain(int argc, _TCHAR* argv[])
{
A = 1;
B = 7;
__asm {
mov EAX, [A];
mov EBX, EAX;
mov B, EBX;
}
return 0;
}
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int A, B;
B = -0x5A;
_asm MOV EBX, B;
_asm MOV EAX, 0;
_asm MOV AL, BL;
_asm NOT AL;
_asm INC EAX;
_asm MOV ECX, 0xFFFFFF80;
_asm OR EAX, ECX;
_asm NOT EAX;
_asm ADD EAX, ECX;
_asm INC AL;
_asm MOV EBX, EAX;
system("pause");
return 0;
}
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{int A = 1;
int B = 2;
int C = 3;
_asm {
mov EAX,A;
mov B,EAX;
MOV EAX,C;
MOV EAX,B;
}
}
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int A;
int B;
A = 1;
B = 7;
_asm MOV EAX, A;
void *pB = &B;
_asm MOV EBX, pB;
_asm MOV[EBX], EAX;
return 0;
}