要对绝对地址0X100000赋值,我们可以用
(unsigned int *)0x100000 = 1234;
那么要是想让程序跳转到绝对地址0X10000去执行,应该怎么做?
*((void (*) () ) 0x10000 ) ();
首先要将0x100000强制转换成函数指针,即:
(void (*) () ) 0x100000
然后再调用它:
*( (void (*) () ) 0x100000 ) ();
要对绝对地址0X100000赋值,我们可以用
(unsigned int *)0x100000 = 1234;
那么要是想让程序跳转到绝对地址0X10000去执行,应该怎么做?
*((void (*) () ) 0x10000 ) ();
首先要将0x100000强制转换成函数指针,即:
(void (*) () ) 0x100000
然后再调用它:
*( (void (*) () ) 0x100000 ) ();