今天我想把上课写的汇编语言程序放进vscode中运行,上课一直用的老师给的软件包,但是按步骤操作后报了很多错,我也不知道是为啥,用老师的软件包都能运行成功。哪位大神帮我看一眼,是不是哪里设置错了? ; eg0418.asm in Windows Console include io32.inc .data .codestart: mov eax,1 ;EAX=F(1)=1 call dispuid ;显示第1个数 call dispcrlf ;回车换行 call dispuid ;显示第2个数 call dispcrlf ;回车换行 mov ebx,eax ;EBX=F(2)=1again: add eax,ebx ;EAX=F(N)=F(N-1)+F(N-2) jc done call dispuid ;显示一个数 call dispcrlf ;回车换行 xchg eax,ebx ;EAX=F(N-1),EBX=F(N-2) jmp againdone: exit 0 end start
不知道你这个问题是否已经解决, 如果还没有解决的话: