Thanks for you help.
Whatever i try, i get the "illegal instruction" error on the first line
EDIT:
Okay, i think im doing some other things wrong aswell.
Im just starting to learn Assembly, and the following code:
Code: Select all
.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
gets a error on the first line. This is what i've been told about the first line:
.model small : Lines that start with a "." are used to provide the assembler with infomation. The word(s) behind it say what kind of info. In this case it just tells the assembler the program is small and doesn't need a lot of memory.
What can the problem be?
EDIT2:
It worked now with TASM =)