programb64 - Microprocessors Applications(UPTU Appendix B...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Appendix B  Explanation : The substring is checked in the main string by comparing the first character of substring with the characters of the main string. If there is a match of first character, then it is required to check whether the length of the substring is less than or equal to the remaining prortion of the main string. If the condition is satisfied comparision continues. If string does not match, then first character of substring is checked for remaining length of main string for the match and process continues. If match is found, FF is stored in AL otherwise AL = 00H.  Algorithm : Step I : Initialize data memory with main string, substring. Step II : Initialize the DS and ES. Step III : Accept the main string from user. Step IV : Accept the substring from user. Step V : CL = count of main string. Step VI : DL = count of substring. Step VII
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

programb64 - Microprocessors Applications(UPTU Appendix B...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online