汇编问题
我有 MASM 汇编器来“编译”16 位程序。 当我尝试“编译”我的示例时,MASM 抛出一些错误:
error A2004: symbol type conflict
warning A4023: with /coff switch, leading underscore required for start address : START
我的代码是:
STA SEGMENT STACK
DB 100H DUP(0)
STA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:CODE,SS:STA
START:MOV AX,CODE
MOV DS, AX
MOV DX, OFFSET BOKER
MOV AH, 8
INT 21H
MOV AX, 4C00H
INT 21H
BOKER DB 'Hello world!$'
CODE ENDS
END START
请帮忙! 谢谢。
I have MASM assembler to "compile" 16 bit programs.
When I tried to "compile" my sample, the MASM throw me some errors:
error A2004: symbol type conflict
warning A4023: with /coff switch, leading underscore required for start address : START
my code is:
STA SEGMENT STACK
DB 100H DUP(0)
STA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:CODE,SS:STA
START:MOV AX,CODE
MOV DS, AX
MOV DX, OFFSET BOKER
MOV AH, 8
INT 21H
MOV AX, 4C00H
INT 21H
BOKER DB 'Hello world!
Please help!
Thanks.
CODE ENDS
END START
Please help!
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该错误从字面上说明了问题所在...
警告 A4023:使用 /coff 开关,起始地址需要前导下划线:START
因此,将
START:MOV AX,CODE
更改为_START:MOV AX,CODE
和 MASM32 的 A2004 问题 在这里您可以找到 A2004 错误的修复程序
The error literally says what's wrong...
warning A4023: with /coff switch, leading underscore required for start address : START
So change
START:MOV AX,CODE
to_START:MOV AX,CODE
And A2004 Problem With MASM32 here you can find a fix for the A2004 error