Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assemble error

Status
Not open for further replies.

xlav

Technical User
Oct 23, 2003
223
JM
I copied and assembled the following code from an assembly tutorial on the web,

Code:
.model small
.stack
.data
message   db "Hello world, I'm learning Assembly !!!", "$"

.code

main   proc
   mov   ax,seg message  ???
   mov   ds,ax

   mov   ah,09
   lea   dx,message
   int   21h

   mov   ax,4c00h
   int   21h
main   endp
end main  ???

I got the following errors;

first ??? line: symbol type conflict
last ??? line: with /coff switch, leading underscore required for start address: main

Seeking your help.

-x

 
WinAsm Studio v3.0.2.4.,(MASM32 IDE).

-x
 
[tt]
first ??? line: symbol type conflict
last ??? line: with /coff switch, leading underscore required for start address: main
[/tt]

Did you try making 'main' into '_main'?

----
JBR
 
Got error 'unmatched block nesting' at line 'main endp'. Put underscore at that 'main' and got error 'undefined symbol :main' for line 'end main'.

-x
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top