programb65 - Microprocessors & Applications (UPTU)...

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

View Full Document Right Arrow Icon
Appendix B  Explanation : At first we will accept the string from the user and store it in STR 1. Call procedure CONVERT, which will do the case conversion. Display the result.  Algorithm : Step I : Initialize the data segment. Step II : Accept the string from user. Step III : Store the accepted string in STR 1. Step IV : Call procedure CONVERT. Step V : Initialize SI = address of STR 1. Step VI : Initialize DI = address of destination string STR 2. Step VII : Load CL = length of STR 1. Step VIII : Load character from STR 1 into AL. Step IX : Check if the character entered is a letter from A-Z. If not go to step 24 Step X : Compare AL with 5AH (i.e. ASCII of upper case). If AL > Greater goto step 13. Step XI : Add 20H to AL to make letter small case. Step XII : Compare AL with 61H (i.e. ASCII of lower case). Step XIII : go to step 21. Step XIV
Background image of page 1

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

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

This note was uploaded on 08/04/2011 for the course ECON 101 taught by Professor Lucky during the Spring '11 term at Silver Lake.

Page1 / 3

programb65 - Microprocessors & Applications (UPTU)...

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