To write an assembly language program to find a letter in the given string. - Code

Latest

programs

Thursday, October 13, 2011

To write an assembly language program to find a letter in the given string.


FINDING THE LETTER IN THE GIVEN STRING

Aim: -   To write an assembly language program to find a letter in the given string.

                      MOV AX, DATA
                      MOV DS, AX
                      MOV ES, AX
                      MOV BX, 00
                      MOV CL, 00
LOOK:                   MOV AL, A[BX]
                      CMP AL, KEY
JE L1
INC BX
CMP AL, 00
JNE LOOK
JMP L2
L1:              MOV CL, 01
                   END
                  
Result: Given letter is found from the given string.
  
Result: Fibonacci series of a given number is obtained.

No comments:

Post a Comment