Professional Documents
Culture Documents
Date Performed:
Date Submitted:
Instructor:
1. Objective(s):
The students shall be able to create a program that displays characters or string of characters using
3. Discussion
In this activity, you will be introduced to the basic Output operations using assembly language.
You will use the DOS interrupt (INT 21H) function to display character or string.
4. Resources:
1 Desktop Computer
TASM
5. Procedure:
DOS Display Function 02H and 06H:
*This program display the character HELLO using INT 21H function 02H and Function06H.
.model small
.stack
.code
begin
mov ah,02h
mov dl,' H '
int 21h
mov dl, ' E „
int 21h
mov dl, ' L '
int 21h
mov dl, ' L '
int 21h
mov dl, ' O '
int 21h
mov ah,4ch
int 21h
end begin
QUESTIONS:
______________________________________________________________________________
______________________________________________________________________________
2. If you change function 02h to 06h what will happen, and explain you answer?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
.model small
.stack
.data
msg1 db “WELCOME $”
msg2 db”TO THE WORLD OF ASSEMBLY LANGUAGE $”
.code
begin:
mov ax, @data
mov ds,ax
mov ah,09h
mov dx,offset msg1
int 21h
mov ah,09h
mov dx,offset msg2
int 21h
mov ah,4ch
int 21h
end begin
QUESTIONS:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
3. What is the used of “mov ah,4ch” and when you removed it what will happen?
_____________________________________________________________________________
_____________________________________________________________________________
a. Create programs that will display the name of your school and address at the center of the
screen. Followed by your full name, course, and section.
Sample Output:
CPE005/CPE42FB1
7. Conclusion:
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________