.386 code segment use16 assume cs:code,ds:data,ss:mystack ; ; is used to write comments begin : ; here begin is a label as it's follows by : mov ax,data ;put in ds the adresse of data segment move ds,ax ; using ax regiter as ds is not directly assecible mov ah,09 ; 09h is the function to write in screen mov dx,offset message ; the offset of messege is put in dx int 21h ; call of interrupt 21 to execute the function mov ah,4ch ; appel a la fonction 4ch (h for hexadecimal) int 21h ; call to execute the function for ending this code ends ; program must be in each exe program data segment use16 ; the dump of data segment and variable in message db "hello, world !",'$' ; here an array of char ends with '$' data ends ; mystack segment stack ; begin of stack dumping db 256 DUP (?) ; 256 cellule full with (?) mystack ends ; end of stak end begin ; end du code source
and i just have tasm downloaded but don't know how to compile this and get it running. i know i have to do something with DOS, i have this program saved in notepad...can somebody please tell me how i can get this program running with TASM?
Edited by WingedPanther, 24 July 2009 - 10:20 AM.
add code tags (the # button)