汇编指令-lea

 

 

 

 

 

 

 

 

 

 

 


#include <iostream>

int main()
{
    std::cout << "Hello World!\n";


    unsigned nEax = 0;
    unsigned nEbx = 0;
    unsigned* pEax = &nEax;

    _asm {
        lea eax, nEax;
        mov nEax, eax;
    };
    printf("nEax = %08X  pEax=%08p\n", nEax,pEax);


}

 

posted @ 2023-06-27 08:36  AngDH  阅读(13)  评论(0编辑  收藏  举报