Friday, November 14, 2014

Assembly Language Program to show the “Hello World!” message


Objectives
-to start assembly programming by the Hello World program
-to understand the basic structure of assembly language programing
-to learn to show a specific message
-to learn to use variables
hello world program,assembly language program
.MODEL SMALL
.STACK 100H
.DATA
MSG DB 'Hello World!$'

.CODE
MAIN PROC

MOV AX,@DATA
MOV DS,AX

LEA DX,MSG
MOV AH,9
INT 21H

MOV AH,4CH
INT 21H

MAIN ENDP
END MAIN

No comments:

Post a Comment