8086 first program you should write as a beginner Edit
if you are a beginner in assembly language. This is the first program you should write. It's also the first program that I write every time I start writing a new assembly language program, this helps me to make sure that everything in place.
This program when executed does only one thing, which is to return the control back to dos.
.model tiny .code org 100h main proc near mov ah,4ch mov al,00 int 21h endp end main ret
the output shows the program has returned the control to the operating system. here I am running the program in emu8086. if you are compiling and building the program using tasm, masm, or some other compiler and linker there will be no output, It will simply return the control back to-dos without any message. The only thing you would see is the command prompt.
Generate executable using
tasm filename.asm tlink /t filename