difference between win32,dos and linux assembly
hi guys,
i've just started to learn assembly, i've got a couple of tutorials and a couple of assemblers (Tasm,Masm32,LZasm,Goasm,Nasm) , but somehow i've started with one tutorial, written a program, try to assemble it, and all i got was a bunch of errors...
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
this was the source. i've tried assembling it on linux --> no good, try do do it with masm32,LZasm,GoAsm,Tasm on Windows --> no good either...
so i guess this is a DOS tutorial, but how can i see the difference?? i eventually want to learn assembly for win32 and linux, mostly because i would like to use a debugger if necessary, and so i must be able to read/understand assembly...
this is the tutorial i've found for win32 here, great tutorial b.t.w., but like i said, how can i see in the code if a program is written for DOS assembly, Linux or win32 ???
i've tried google for this, but none of the things i've found were very clear :(