汇编语言用radasm编译时问题
i:\RadASM\Masm32\Bin\LINK.EXE/SUBSYSTEM:WINDOWS/RELEASE/VERSION:4.0/LIBPATH:"i:\RadAS...
i:\RadASM\Masm32\Bin\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"i:\RadASM\Masm32\Lib" "E:\DEBUG\AA.obj"
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
AA.obj : error LNK2001: unresolved external symbol _Exitprocess@4
AA.exe : fatal error LNK1120: 1 unresolved externals
代码如下
.386
.model flat, stdcall
.stack 4096
Exitprocess proto, dwexitcode:dword
.data
Rval SDWORD ?
Xval SDWORD 26
Yval SDWORD 30
Zval SDWORD 40
.code
main PROC
mov ax,1000h
inc ax
dec ax
mov eax,Xval
neg eax
mov ebx,Yval
sub ebx,Zval
add eax,ebx
mov Rval,eax
mov cx,1
sub cx,1
mov ax,0fffh
inc ax
mov cx,0
sub cx,1
mov ax,7fffh
add ax,2
mov al,0ffh
add al,1
mov al,+127
add al,1
mov al,-128
sub al,1
INVOKE Exitprocess,0
main ENDP
END main 展开
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
AA.obj : error LNK2001: unresolved external symbol _Exitprocess@4
AA.exe : fatal error LNK1120: 1 unresolved externals
代码如下
.386
.model flat, stdcall
.stack 4096
Exitprocess proto, dwexitcode:dword
.data
Rval SDWORD ?
Xval SDWORD 26
Yval SDWORD 30
Zval SDWORD 40
.code
main PROC
mov ax,1000h
inc ax
dec ax
mov eax,Xval
neg eax
mov ebx,Yval
sub ebx,Zval
add eax,ebx
mov Rval,eax
mov cx,1
sub cx,1
mov ax,0fffh
inc ax
mov cx,0
sub cx,1
mov ax,7fffh
add ax,2
mov al,0ffh
add al,1
mov al,+127
add al,1
mov al,-128
sub al,1
INVOKE Exitprocess,0
main ENDP
END main 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询