Google Search

Thursday, October 13, 2011

To write an assembly language program to comparing two given strings.


             COMPARISION OF TWO GIVEN STRINGS

Aim: -   To write an assembly language program to comparing two given strings.

                      MOV AX, DATA
                      MOV DS, AX
                      MOV ES, AX
                      CID
                      MOV CX, 07
                      LEA SI, SR1
                      LEA DI, SR2
REP CMP, SB
JB L1
    L1:          MOV BH, 00
                    END    
         
Result: Two given strings are compared.
                  


           Result: The given string is reversed.

0 comments:

Post a Comment