IT0047 Activity 2 String Manipulation
IT0047 Activity 2 String Manipulation
IT0047
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.
2.5 Materials/Equipment
Figure 1. Title
2.7 Procedure/s
.model small
.stack
.data
x db "RED$"
y db "BLUE$’"
.code org
100h
start:
main proc
mov ax,@data
mov ds,ax
mov ah, 9 lea dx,
y int 21h
call down
mov ah, 9
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.com as
the filename.
5. What are the requirements that must be satisfied before INT 21h service 9 prints the
string?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
2.8.2 Calculations
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
2.8.4 Conclusion/s
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Criteria Grade
Total Score
Other Comments: