我有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
请帮忙! 感谢。
答案 0 :(得分:1)
错误字面上说出了什么错误...... warning A4023: with /coff switch, leading underscore required for start address : START
所以将START:MOV AX,CODE
更改为_START:MOV AX,CODE
此处A2004 Problem With MASM32您可以找到针对A2004错误的修复
答案 1 :(得分:0)
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