programb61 - 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 : Firstly, we will accept the two strings to be concatenated. Then, we will call procedure CONCAT which will concatenate the two strings. Display the concatenated strings.  Algorithm : Step I : Start. Step II : Accept string 1 from user. Step III : Accept string 2 from user. Step IV : Call procedure CONCAT. Step V : Load length of string 1 in CX. Step VI : Load the address of source string 1 in SI and DI. Step VII : Copy the contents of string 1 to destination string. Step VIII : Load SI with address of string 2. Step IX : Copy the contents of string 2 to destination string. Step X : Display the concatenated string. Step XI : Procedure and return to calling program Step XII : Stop.  Flowchart : Refer flowchart 61.  Program : page100, 50 title string concatenatation mess macro msg ; definition of macro mess mov ah, 09h lea dx, msg int 21h endm .model small .stack 100h .data str1 db 25 , ? , 25 dup('$')
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 / 2

programb61 - 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