For many other Assembly Language Programs related to microprocessor 8086 , C++ , C, DataStructures visit our BLOG
CONCATENATION OF STRINGS IN 8086 ALP :-
DATA SEGMENT
STR1 DB "hello$"
STR2 DB "world$"
DATA ENDS
CODE SEGMENT
START: ASSUME CS:CODE , DS:DATA
MOV AX, DATA
MOV DS, AX
MOV SI, OFFSET
STR1
NEXT: MOV AL,
[SI]
CMP AL, ’$’
JE
EXIT
INC SI
JMP
NEXT
EXIT: MOV DI, OFFSET
STR2
UP: MOV AL, [DI]
CMP AL, "$"
JE
EXIT1
MOV
[SI], AL
INC
SI
INC
DI
JMP UP
EXIT1: MOV AL,
’$’
MOV [SI], AL
MOV AH, 4CH
INT 21H
CODE ENDS
END START
block transfer using string
string concatenation
string length calculation
Block Transfer
Block reverse
Programs:-
For many other Assembly Language Programs related to microprocessor 8086 , C++ , C, DataStructures visit our BLOG
There are programs of largest ,smallest ,division ,multiplication,odd/even,block operation ,string operations,BCD ,etc
For many other Assembly Language Programs related to microprocessor 8086 , C++ , C, DataStructures visit our BLOG
There are programs of largest ,smallest ,division ,multiplication,odd/even,block operation ,string operations,BCD ,etc
Thanks!
ReplyDelete