home *** CD-ROM | disk | FTP | other *** search
- ;***
- ;
- ;STRINGOF.ASM - a simple routine to return a string of n instances of
- ; a certain character
- ;
- ;(C)Copyright Gerard Paul Java 1996
- ;
- ;***
-
- .MODEL TPASCAL
-
- .CODE
-
- PUBLIC StringOf
-
- StringOf PROC FAR CharToRepeat: BYTE,Count: BYTE RETURNS DestString: DWORD
- LES DI,DestString
- MOV AL,Count
- STOSB
- MOV CL,Count
- XOR CH,CH
- MOV AL,CharToRepeat
- REP STOSB
- RET
- StringOf ENDP
-
- END
-
-
-