66 汇编改变数值

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了66 汇编改变数值相关的知识,希望对你有一定的参考价值。

#include<iostream>
using namespace std;


void fun()
{
	int tmp;
	*((int *)*(&tmp+1)-1) = 12;
/*	_asm
	{
		mov eax,dword ptr [ebp]
		sub eax,0x4
		mov dword ptr[eax],0xC
	}
*/
}



int main()
{
	int a = 10;
	fun();
	cout<<a<<endl;
	return 0;
}

vc6.0可以运行

以上是关于66 汇编改变数值的主要内容,如果未能解决你的问题,请参考以下文章