Reputation: 21
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!$'
CODE ENDS
END START
Please help! Thanks.
Upvotes: 1
Views: 3693
Reputation: 1
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
Upvotes: 0
Reputation: 5640
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
Upvotes: 1