能力值:
(RANK:410 )
|
-
-
2 楼
源码发上来看一看。
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
assume cs:codeseg
codeseg segment
mov ax,2000h
mov ss,ax
mov sp,0
add sp,4
pop ax
pop bx
push ax
push bx
pop ax
pop bx
mov bx,4c00h
int 21h
codeseg ends
end
连接信息如下:
C:\RadASM\Masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"C:\RadASM\Masm32\Include" "C:\lonker\2.asm"
Assembling: C:\lonker\2.asm
C:\RadASM\Masm32\Bin\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"C:\RadASM\Masm32\Lib" "C:\lonker\2.obj"
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
2.exe : fatal error LNK1120: 1 unresolved externals
构建时发生错误.
总共编译时间 932 毫秒
这个程序片断是王爽的那个汇编教程上的。
|
能力值:
( LV6,RANK:90 )
|
-
-
4 楼
用16位版本的link,并要注意参数的意义。
|
能力值:
( LV12,RANK:210 )
|
-
-
5 楼
两个问题:
1.编译DOS程序必须使用16位的Link程序, 就是那个Segmented Linker, 不要用32位的Incremental Linker, 从你的编译命令来看, 你用的就是32位的Linker. 如果你没有16位Linker我可以发一份
2.你的程序结尾的END伪指令没有指定入口点
END 入口点
|
能力值:
( LV2,RANK:10 )
|
-
-
6 楼
谢谢大家
王爽把伪指令end解释为程序的结束,还是没有进一步说明清楚呀。呵呵
|
|
|