拆卸问题 [英] problem with disassembly

查看:86
本文介绍了拆卸问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asm.asm中遇到问题,我有:无法显示源位置的反汇编,源代码中此位置没有可执行代码。


你能帮帮我吗?




main.cpp


#include< iostream>


#include< conio.h>


使用命名空间std;


的extern" C" long long Asm();


int mai()


{


cout<<" Asm说"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

}


asm.asm


.code


Asm proc


mov rax,1


mov rbx,1


添加rax,rbx


ret


Asm endp


end


解决方案

链接程序时是否有问题?



i have problem in asm.asm , i have : Disassembly cannot be displayed for the source location , There is no executable code at this location in the source code .

Can You help me ?

main.cpp

#include <iostream>

#include <conio.h>

using namespace std;

extern"C" long long Asm();

int mai ()

{

cout<<"Asm said "<<Asm()<<endl;

_getch();

return 0;

}

asm.asm

.code

Asm proc

mov rax,1

mov rbx,1

add rax,rbx

ret

Asm endp

end

解决方案

Is it a problem during linking the program?


这篇关于拆卸问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆