标题:masm报错A2004而且问题很严重。
只看楼主
zklhp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:china
等 级:贵宾
威 望:254
帖 子:11485
专家分:33241
注 册:2007-7-10
得分:20 
看来你没明白我的意思 你上面的是16位程序 masm32带的编译器是32位编译器

用masm32里的编译器也就是ml编译16位程序要

ml.exe /Zm /c a.asm
link.exe a.obj

而且link可能还要用16位的才行

如果你非要用这个 建议用IDE 比如masmplus 完美解决这个问题

如果你想用命令行 呵呵 那你得能明白上面我帖的命令的用法才行。。。


[ 本帖最后由 zklhp 于 2012-3-12 10:30 编辑 ]
2012-03-12 10:25
btx_0607
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2012-3-12
得分:0 
知道错了,官方回答
you are trying to assemble and link a 16-bit program with a 32-bit assembler/linker
actually - the assembler should be ok - it is the linker that cannot handle 16-bit code
at the end of the sub-forum list is one for 16-bit programming
search that subforum
there are 16-bit linker downloads, as well as batch files to perform assembly and linking
there are also a number of 16-bit program examples
you do not have to declare all those segments - there are shortcuts   

then, the data segment is best refered to as @DATA
2012-03-12 10:40
btx_0607
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2012-3-12
得分:0 
呵呵,谢谢,知道了
2012-03-12 10:41



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-362886-1-1.html




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

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