用radasm masm编译器 新建个dos程序用于显示hello world!

[复制链接]
查看11 | 回复1 | 2008-7-8 22:01:39 | 显示全部楼层 |阅读模式
我是刚刚才学汇编希望大家帮帮忙
有你的代码出现这样的错误
C:\Program Files\RadASM\Masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"C:\Program Files\RadASM\Masm32\Include" "C:\Documents and Settings\Administrator\桌面\汇编代码\dos\dos.asm"
Assembling: C:\Documents and Settings\Administrator\桌面\汇编代码\dos\dos.asm
C:\Documents and Settings\Administrator\桌面\汇编代码\dos\dos.asm(2) : error A2084: constant value too large
C:\Documents and Settings\Administrator\桌面\汇编代码\dos\dos.asm(8) : error A2004: symbol type conflict
C:\Documents and Settings\Administrator\桌面\汇编代码\dos\dos.asm(16) : warning A4023: with /coff switch, leading underscore required for start address : main
构建时发生错误.
总共编译时间 1218 ms

回复

使用道具 举报

千问 | 2008-7-8 22:01:39 | 显示全部楼层
下面程序在MASM上可以编译通过data segmenthey db 'hello world'+'$'data endscode segmentassume cs:code,ds:datamain:mov ax,datamov ds,axmov dx,offset heymov ah,09hint 21hmov ah,4Chint 21hcode endsend mainradasm这个编译器我没用过,你还是上网查下相关资料吧,如果软件有帮助也可以看看。我用的是微软的MASM,而且我上面给出的代码是16位的,保存为hello.asm在MASM的目录下命令MASM he
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行