作者BingJing (京酱)
看板CSIE_ASM
标题Re: [问题] 请问要怎麽Compile
时间Wed Dec 31 12:49:23 2008
我搞懂了~
原来我下载到黑心版本的MASM6.15,结果跑不出来.com
幸好有人好心跟我说,我就把可以用MASM6.15摆在下面 yahoo 搜的到
http://www2.hawaii.edu/~pager/312/masm%20615%20downloading.htm
解压缩後
然後设环境变数path到它目录下的bin目录
compile 时,下 ML /AT $file.asm
会出现以下讯息,并在目录里产生一个$file.com
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
Assembling: $file.asm
Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994
Copyright (C) Microsoft Corp 1984-1993. All rights reserved.
Object Modules [.obj]: $file.obj /t
Run File [b16.com]: "$file.com"
List File [nul.map]: NUL
Libraries [.lib]:
Definitions File [nul.def]:
PS: 感谢昨天在实验室教我的好心助教
※ 引述《yangjiunru (‵(‵▽′)′N )》之铭言:
试试看这样
ml /c /AT b16.asm
link /tiny b16.obj;
如果没有link.exe可以在这里下载
解开就有link.exe
http://download.microsoft.com/download/vc15/Update/1/WIN98/EN-US/Lnk563.exe
※ 引述《BingJing (京酱)》之铭言:
: 11:04
: 结果现在只出现.obj,mllink$.lnk档
: 好难喔@@
: -----------------------------------------
: 我现在安装完了,上一篇的MASM
: 可是我发现C:\Masm615\make16.bat 只能产生
: Assembling: b16.asm
: Volume in drive C is VistaOS
: Volume Serial Number is 0868-A542
: Directory of C:\Masm615
: 2008/12/29 ?? 09:10 193 b16.asm
: 2008/12/29 ?? 09:10 5,977 b16.lst
: 2008/12/29 ?? 09:10 1,523 b16.obj
: 3 File(s) 7,693 bytes
: 0 Dir(s) 44,077,481,984 bytes free
: 并没有.exe或.com跑出来
: 请问要怎麽弄?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.247.241
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.30.38
1F:推 Devarena:可以用windows/system32 下面的exe2bin.exe 01/01 22:44
2F:→ Devarena:把exe转成com 01/01 22:44
3F:推 TimeString:黑心版 @.@ 01/02 11:24