| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 801 人关注过本帖
标题:能LINK成EXE文件但不能运行
只看楼主 加入收藏
小白菜
Rank: 1
等 级:新手上路
帖 子:150
专家分:0
注 册:2005-3-18
收藏
 问题点数:0 回复次数:3 
能LINK成EXE文件但不能运行

.386
.model flat,stdcall
option casemap:none

.data
filename db 'monst.txt',0
.code
start:
lea dx,filename
mov cx,0
mov ah,3ch
int 21h
end start

为什么这个程序可以编译通过,可是最后的EXE文件却不能运行?我也试过了其它的程序,有好多都 是可以编译通过,但不能打开运行的?请问有没有高手知道这是为什么?谢谢

搜索更多相关主题的帖子: LINK EXE 文件 运行 
2007-07-06 14:32
菜鸟上路
Rank: 4
等 级:贵宾
威 望:14
帖 子:1120
专家分:0
注 册:2006-3-21
收藏
得分:0 

Category: D - DOS kernel

Inp.:
AH = 3Ch
CX = file attributes (see #01378)
DS:DX -> ASCIZ filename
Return: CF clear if successful
AX = file handle
CF set on error
AX = error code (03h,04h,05h) (see #01657 at AH=59h/BX=0000h)
Notes: if a file with the given name exists, it is truncated to zero length
under the FlashTek X-32 DOS extender, the pointer is in DS:EDX
DR DOS checks the system password or explicitly supplied password at

the end of the filename against the reserved field in the directory
entry before allowing access


Copied from Ralf Brown's Interrupt List


2007-07-06 17:00
菜鸟上路
Rank: 4
等 级:贵宾
威 望:14
帖 子:1120
专家分:0
注 册:2006-3-21
收藏
得分:0 
是不能运行还是一闪而过?

2007-07-06 17:01
小白菜
Rank: 1
等 级:新手上路
帖 子:150
专家分:0
注 册:2005-3-18
收藏
得分:0 

不能运行。。不知道会不会是连接成PE格式,所以才不行。。。


/pa?p=1:172013910:12" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://wpa./pa?p=1:172013910:12');}" onmousewheel="return imgzoom(this);" alt="" />/msgrd?V=1&Uin=172013910&Site=www.&Menu=yes" target="_blank">有事就Q我!呵呵......
2007-07-07 23:02
快速回复:能LINK成EXE文件但不能运行
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014491 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved