Write an Assembly Language Program to Display a String
Object:
Write an Assembly Language Program to Display a String / Text / Hello World.
Code:
.MODEL SMALL
.STACK 64
.DATA
MSG DB ‘Welcome to codeboks.com’,’$’
.CODE
MAIN PROC FAR
MOV AX,@DATA
MOV DS,AX
CALL D
MOV AH,4CH
INT 21H
MAIN ENDP
D PROC
MOV AH,09
MOV DX,OFFSET MSG
INT 21H
RET
D ENDP
END MAIN
.MODEL SMALL
.STACK 64
.DATA
MSG DB 'Welcome to codeboks.com','$'
.CODE
MAIN PROC FAR
MOV AX,@DATA
MOV DS,AX
CALL D
MOV AH,4CH
INT 21H
MAIN ENDP
D PROC
MOV AH,09
MOV DX,OFFSET MSG
INT 21H
RET
D ENDP
END MAIN
Command Prompt:
DOSBOX:
Top 40 projects with C++ for beginners in 2021
The C Programming Language Structure with C Language data types
Best Top 5 Programming Languages demand in 2021
C# windows form application projects with source code
Linear Search Algorithm Source Code in C++