Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Print Large String

Print Large String

Ratings: (0)|Views: 36|Likes:

More info:

Published by: Muhammad Rana Farhan on Dec 26, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/26/2009

pdf

text

original

 
Print Large String
============================================
.MODEL SMALLDATA_SEG SEGMENT 'DATA'ST2 DB 100 DUP (?)ST1 DB 10,13,"ENTER FIRST STRING$"ST3 DB 10,13,"ENTER SECOND STRING$"ST4 DB 100 DUP(?)DATA_SEG ENDSCODE_SEG SEGMENT 'CODE'ASSUME CS:CODE_SEG,DS:DATA_SEGSTART PROC FAR MOV AX,DATA_SEGMOV DS,AXMOV AH,9MOV DX,OFFSET ST1INT 21HMOV ST2[0],97MOV DX,OFFSET ST2MOV AH,0AHINT 21HMOV BL,ST2[1]MOV BH,0MOV ST2[BX+2],'$'MOV AH,6MOV AL,0MOV BH,7MOV CH,0MOV CL,0MOV DH,25MOV DL,80INT 10HMOV AH,9MOV DX,OFFSET ST3
 
INT 21HMOV ST4[0],97MOV DX,OFFSET ST4MOV AH,0AHINT 21HMOV BL,ST4[1]MOV BH,0MOV ST4[BX+2],'$'MOV AL,ST2[1]MOV AH,ST4[1]CMP AH,ALJL FIRSTJG SECONDMOV DI,2MOV BL,ST2[1]MOV BH,0MOV CX,BXAGAIN :MOV AH,ST2[DI]MOV AL,ST4[DI]CMP AH,ALJG FIRSTADD DI,1JMP AGAINJL SECONDFIRST:MOV AH,9MOV DX,OFFSET ST2[2]INT 21HJMP EXITSECOND:MOV AH,9MOV DX,OFFSET ST4[2]INT 21H

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->