First ASM program
Posted
by Tal
on Stack Overflow
See other posts from Stack Overflow
or by Tal
Published on 2010-05-03T14:26:31Z
Indexed on
2010/05/04
1:08 UTC
Read the original article
Hit count: 365
masm
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 :)
© Stack Overflow or respective owner