ITECOMPSYSL Activity 3 - String Manipulation
ITECOMPSYSL Activity 3 - String Manipulation
Strings can’t usually fit in a register, string are then placed in the memory and then pass
the address of the string in memory of two of the registers, the segment address in DS and offset
address in DX.
3.5 Materials/Equipment
Figure 1. Title
3.7 Procedure/s
.model small
.stack
.data
x db "RED$"
y db "BLUE$’"
.code org
100h
start:
main proc
down proc
mov ah, 2
mov dl,13
int 21h
mov dl,10 int
21h ret
down endp
end start
1. Given the sample output coming from your instructor, write down and compile the
required program that will provide the expected sample output using expt3.exe as the
filename.
expt3.asm
SAM21.ASM
SAM211.asm
3.8.2 Calculations
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Criteria Grade
Total Score