Beruflich Dokumente
Kultur Dokumente
4.5 Materials/Equipment
Figure 1. Title
4.7 Procedure/s
1. Write the following program using SK’s notepad as your text editor using the filename
sam4.asm
.model small
.code
org 100h
start:
mov ah,1
int 21h
mov dl, al
add dl, 20h
mov ah,2
int 21h
int 20h
2. Execute the given program. Write the outputs for the following inputs.
SAM4.ASM
X - Xx
R - Rr
D – Dd
3. Modify the program, use service 8 instead of service 1. Execute the program using the
same input. Write down your observation.
4. Replace service 8 by service 7. Execute the program using the same input. Write down
your observation.
Course Title:
Instructor:
1. Given the sample output coming from your instructor, write down and compile the
required program that will provide the expected sample output using expt4.com as
the filename.
cpre.asm
Service 1 can have both echo and Ctrl + pause/break Output but Service 7 doesn’t
have output in both function
Character Input and Password Protected Program Activity helps us to learn the difference
of mov ah, 1 int 21h “service 1” to mov ah, 7 int 21h “service 7” and mov ah, 8 int 21h
“service 8”
4.8.4 Conclusion/s
I conclude in this laboratory activity that using mov ah, 8 int 21h is more suitable in using
password protected programs because it doesn’t output echo.
Total Score