Assembly-Guidebook

Hello World

.MODEL SMALL // program uses a maximum of 64K if memory for code
.STACK 100 // Bytes of stack space for the program
.DATA      // Beginning of the data segment where variables stored

MSG1    DB"My First Program in 8086!!!$"

.CODE     //Beginning of the code segment
    MOV AX,@DATA
    MOV DS,AX

    LEA DX,MSG1
    MOV AH,09H
    INT 21H

    MOV AH,4CH    //Exit
    INT 21H
END

Output

image