First ASM program
- by Tal
Hello,
I'm trying to run my first ASM 8086 program on MASM on Windows Vista 64bit OS.
I put this program on my MASM editor:
.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
and the MASM editor gives me this output that I got no idea what's wrong with the program:
Assembling: D:\masm32\First.asm
D:\masm32\First.asm(9) : error A2004: symbol type conflict
D:\masm32\First.asm(19) : warning A4023: with /coff switch, leading underscore required for start address : main
_
Assembly Error
Where is the problem with this code? This is my first ASM program please remember.
Thank you :)